Function program to optimize multiple variables of an equation
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to create a function program that can optimize multiple variables under certain constraints.
I primarily want to have a skeleton program that I can use for any scenario.
For starters lets just look at optimizing the dimensions of an Ibeam:
function f = ibeam(b,h) where b = 0.1:2 , and h = 0.1:2.
This specific program will optimize 'B', 'H', 'b', and 'h' of an I-beam such that the critital force, Fcr , is equal to the yield force of the material, Fy .
Fcr = (pi^2*E*I)/(K*L)^2 where E, K, L are known, and I is in terms of 'b' and 'h'.
Fy = 640,000 (known value)
I = b*H^3/12 + 2(B*h^3/12 + h*B*(H+h)^2/4)
0 commentaires
Réponses (2)
Alan Weiss
le 29 Oct 2014
Do you have a question? If so, I am unable to understand what you are asking.
If you are looking for a program that solves simultaneous nonlinear equations, look at fsolve in Optimization Toolbox. If you are looking for a general optimizer for constrained nonlinear problems, look at fmincon in Optimization Toolbox.
Alan Weiss
MATLAB mathematical toolbox documentation
0 commentaires
Roshni Khetan
le 1 Oct 2017
did you find a solution? I am looking for a very similar thing
0 commentaires
Voir également
Catégories
En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!