How to use optimization in matlab?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Nonlinear Optimization dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!