Effacer les filtres
Effacer les filtres

Function program to optimize multiple variables of an equation

3 vues (au cours des 30 derniers jours)
Joe
Joe le 28 Oct 2014
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)

Réponses (2)

Alan Weiss
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

Roshni Khetan
Roshni Khetan le 1 Oct 2017
did you find a solution? I am looking for a very similar thing

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!

Translated by