Skip to content

Commit

Permalink
- added warnings for optimizations flags
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19072 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Feb 12, 2014
1 parent 17615fe commit 0a7036f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -87,7 +87,7 @@ static int initial_guess_ipopt_cflag(IPOPT_DATA_ *iData,char* cflags)
}else if(!strcmp(cflags,"sim") || !strcmp(cflags,"SIM"))
return 1;

infoStreamPrint(LOG_STDOUT, 1, "ipopt_hesse | not found", cflags);
warningStreamPrint(LOG_STDOUT, 1, "not support ipopt_init=%s", cflags);
return 1;
}

Expand Down
2 changes: 2 additions & 0 deletions SimulationRuntime/c/optimization/mainOptimizer/ipoptODE.c
Expand Up @@ -249,6 +249,8 @@ static int set_optimizer_flags(IPOPT_DATA_ *iData,IpoptProblem *nlp)
AddIpoptStrOption(*nlp, "hessian_approximation", "limited-memory");
else if(!strcmp(cflags,"const") || !strcmp(cflags,"CONST"))
AddIpoptStrOption(*nlp, "hessian_constant", "yes");
else
warningStreamPrint(LOG_STDOUT, 1, "not support ipopt_hesse=%s",cflags);
}

cflags = (char*)omc_flagValue[FLAG_LS_IPOPT];
Expand Down

0 comments on commit 0a7036f

Please sign in to comment.