MATLAB Answers

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

21 views (last 30 days)
NN
NN on 26 Sep 2021 at 1:25
Commented: Matt J on 27 Sep 2021 at 8:02
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?

Answers (1)

Matt J
Matt J on 26 Sep 2021 at 14:52
Edited: Matt J on 26 Sep 2021 at 14:54
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 Comments
Matt J
Matt J on 27 Sep 2021 at 8:02
I am not sitting beside you at your computer. I cannot see what you entered...

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!