Matlab optimprob _Problem based _how can i see the optimal parameter setting while using optimprob

조회 수: 2 (최근 30일)
Hi,
i am using optimprob for grid optimal dispatch problem, in this case how can i see the optimal parameter settings/iterations etc as we normally plot for other optimization methods, ?
Any graph/data that i can plot during simulation like optimization search space/paramters etc using any commands ???
[values,~,exitflag] = solve(prob,'Options',options);
I use this command,
how can i see the optimal values and cosntraints
Please advcie

채택된 답변

Alan Weiss
Alan Weiss 2021년 9월 14일
You can set a plot function in the options for your solver. To see which solver is being used, call optimoptions:
options = optimoptions(prob) % I assume prob is your optimproblem
Suppose that your solver is ga. Then you can set a plot function that ga accepts:
options = optimoptions(prob,"PlotFcn","gaplotbestf");
If the plot functions do not show what you want, feel free to write a custom plot function (ga is shown, but there are custom plot functions available for most solvers).
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 11
Alan Weiss
Alan Weiss 2021년 9월 20일
I'm sorry, but I have reached the limit of the time I am willing to put in investigating your problem.
Alan Weiss
MATLAB mathematical toolbox documentation
NN
NN 2021년 9월 20일
Ok .That is really sad.
Thank you very much for your time and consideration

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by