Skip to content

Commit

Permalink
- fixed ipopt warning
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19425 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Mar 4, 2014
1 parent 97d2835 commit 0f18ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/optimization/mainOptimizer/ipoptODE.c
Expand Up @@ -103,7 +103,7 @@ int startIpopt(DATA* data, SOLVER_INFO* solverInfo, int flag)
res = set_optimizer_flags(iData,&nlp);
if(res >= 0)
res = IpoptSolve(nlp, iData->v, NULL, &obj, iData->mult_g, iData->mult_x_L, iData->mult_x_U, (void*)iData);
if(res < 0)
if(res < 0 && !ACTIVE_STREAM(LOG_IPOPT_FULL))
warningStreamPrint(LOG_STDOUT, 0, "No optimal solution found!\nUse -lv=LOG_IPOPT for more information.");

FreeIpoptProblem(nlp);
Expand Down

0 comments on commit 0f18ca4

Please sign in to comment.