what changes should i make in final optimised value with opt time vector

조회 수: 1 (최근 30일)
NN
NN 2021년 9월 26일
댓글: Matt J 2021년 9월 27일
Any modifications to be done in the final optimized value that specify a combination of step size (Ts) and number of iterations (N)?
I am getting a higher optimized value in a problem based optimization problem ,should i make any changes in the final Fval since
opt Time=5*60=300 chosen in my problem?
  댓글 수: 2
NN
NN 2021년 9월 26일
Thank you fo rthe reply , Can you please detail what exactly meant and how it can be done

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

답변 (1개)

Matt J
Matt J 2021년 9월 26일
편집: Matt J 2021년 9월 26일
Use prob2struct
s=prob2struct(prob);
s.f0
The value of s.f0 will be the discrepancy between a problem-based linear optimization and a solver-based linear optimization.
  댓글 수: 4
NN
NN 2021년 9월 27일
When i tried to use probstruct , it gives the following error
Unable to convert 'struct' to 'sym'.
Please advice
Matt J
Matt J 2021년 9월 27일
I am not sitting beside you at your computer. I cannot see what you entered...

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

Community Treasure Hunt

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

Start Hunting!

Translated by