Minimize a variable in a no-linear system

1 view (last 30 days)
Hi, i need to minimize Fv in this system:
The problems variables are :
  19 Comments
Matt J
Matt J on 31 Jan 2023
@Antonio Cassano I would post that as a new question. First of all, we don't know what your current code looks like, the one that produced that graph. Secondly, we don't know what you would consider an "improvement" to the current result. All that could and should go into a new post..
Matt J
Matt J on 31 Jan 2023
Edited: Matt J on 31 Jan 2023
However you might also try looping backwards from n:-1:1 and initializing instead with,
initialPoint.Fv = Fvt(j,i+1);
initialPoint.p0 = p0t(j,i+1);
initialPoint.x_k = x_kt(j,i+1);
initialPoint.y_k = y_kt(j,i+1);
initialPoint.f = ft(j,i+1);
since the solutions seem to be more sensitive to the initial guess at lower i.

Sign in to comment.

Accepted Answer

Matt J
Matt J on 22 Jan 2023
Edited: Matt J on 22 Jan 2023
If you use the Problem Based optimization tools, you can pretty much type in the problem as you have for us above, and the solver will be selected for you.
Fv=optimvar('Fv',4,1);
Fn=optimvar('Fn',4,1);
Ftx=optimvar('Ftx',4,1);
Fty=optimvar('Fty',4,1);
con(1) = Fez+4*Fv-sum(Fn)==0;
con(2) = Fex+sum(Ftx)==0;
etc...
  1 Comment
Antonio Cassano
Antonio Cassano on 22 Jan 2023
I tried this solution but the solver give me only infeasible point.

Sign in to comment.

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!