Function program to optimize multiple variables of an equation

3 views (last 30 days)
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)

Answers (2)

Alan Weiss
Alan Weiss on 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 on 1 Oct 2017
did you find a solution? I am looking for a very similar thing

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!