File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -688,14 +688,19 @@ bool OptimizationHandler::evaluateCandidate(int idx)
688688 mEvalId = idx;
689689 mpHcomHandler->setModelPtr (mModelPtrs .at (idx));
690690 mpHcomHandler->executeCommand (" opt set evalid " +QString::number (idx));
691- mpHcomHandler->executeCommand (" call setpars" );
692691
693- bool simOK=false ;
694- simOK = mModelPtrs .at (idx)->simulate_blocking ();
692+ if (mpHcomHandler->hasFunction (" evalexternal" )) {
693+ mpHcomHandler->executeCommand (" call evalexternal" );
694+ }
695+ else {
696+ mpHcomHandler->executeCommand (" call setpars" );
697+ bool simOK=false ;
698+ simOK = mModelPtrs .at (idx)->simulate_blocking ();
695699
696- if (!simOK)
697- {
698- return false ;
700+ if (!simOK)
701+ {
702+ return false ;
703+ }
699704 }
700705
701706 mpHcomHandler->executeCommand (" opt set evalid " +QString::number (idx));
You can’t perform that action at this time.
0 commit comments