Skip to content

Commit

Permalink
- changed default optimization-method for initialization
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10353 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Nov 9, 2011
1 parent 520b5cc commit 4eaabe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c_runtime/simulation_init.cpp
Expand Up @@ -746,7 +746,7 @@ int state_initialization(INIT_OPTI_METHOD optiMethod)
globalData->init = 1; /* to evaluate when-equations with initial()-conditions */

int retVal = 0;
retVal = initialize(optiMethod);
retVal = initialize(IOM_NELDER_MEAD_EX);

saveall(); /* save pre-values */
storeExtrapolationDataEvent(); /* if there are non-linear equations */
Expand Down Expand Up @@ -783,7 +783,7 @@ int state_initialization(INIT_OPTI_METHOD optiMethod)
int initialization(const char* pInitMethod, const char* pOptiMethod)
{
INIT_INIT_METHOD initMethod = IIM_STATE; /* default method */
INIT_OPTI_METHOD optiMethod = IOM_NELDER_MEAD_EX; /* default method */
INIT_OPTI_METHOD optiMethod = IOM_SIMPLEX; /* default method */

/* if there are user-specified options, use them! */
if(pInitMethod)
Expand Down

0 comments on commit 4eaabe1

Please sign in to comment.