I want to optimize two variables
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I end up on equation as shown below.
[Ku]*[u]+[Kp]*[p]=[C]*B.^2*Ui
B is bounded and Ui is known.
I want to find maximum of u and p combination by varing B.
how can i do that? can i have a plot also?
7 Kommentare
Torsten
am 2 Jun. 2022
p get a priority .....but u shouldn't be low too
Too vague for an optimization.
Antworten (2)
Sam Chak
am 2 Jun. 2022
Since u and p are the variables, geometrically, this equation is a plane (flat surface)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019900/image.png)
By varying B, the plane moves can up and down in the z-axis direction in the 3D space.
I'm visualizing, do you think there are maxima if u and p are unconstrained?
2 Kommentare
Walter Roberson
am 2 Jun. 2022
If they are constrained to non-negative then you could set the other to 0 and solve... but I am not clear at the moment whether they are scalar or matrices
Siehe auch
Kategorien
Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!