MATLAB Answers


Extracting variables during optimization (fmincon, MultiStart, run)

Asked by Naho
on 27 Nov 2014
Could you please tell me how to extract some variables in the model? (in addition to the estimated parameters in the output of solutions, if it would be possible)
If the model have stored the variables computed with the estimated parameters via MultiStart, it would be great to extract those variables at the same time. Or, if I still really need to run the model one more time again, (in order to get the variables by using the estimated/optimized parameters via MultiStart), I will give up and also appreciate if you could tell me so.
Thank you so much for your advice, in advance.
Best, - Naho
%-------------- problem = createOptimProblem('fmincon',... 'objective', model,'x0',initval,'lb',LB,'ub',UB,'options',opts);
ms = MultiStart;
[b,fval,exitflag,output,solutions] = run(ms, problem, 50);


Sign in to comment.

0 Answers