How to use optimization in matlab?
Ältere Kommentare anzeigen
Greetings everyone, I am new to Global Optimization Toolbox.
Could someone explain to me please, I have the following simple code, which represents a square with side A and B.
Basically I am just trying to find value of x which would maximize my V (Volume).
How would I do that with an optimization toolbox? Any help would be much appreciated.
(I have Global Optimization Toolbox and Optimization Toolbox)
x = 0.2 %Optimization Variable <---
Lt = 10; %Total Perimeter Length
A = Lt*x % Side A
B = Lt-A % Side B
V = A*B %Volume (We want to maximize Volume)
rL = A+B
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Nonlinear Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!