How will i transfer this graphical method code to simplex method?
显示 更早的评论
this is code is for maximizing the sizes of the cantiliver beam in graphical method of linear programming. i just want to ask a little idea how to transfer it in simplex method.
clear all; close all; clc; FOS= input(' Enter the value for FOS= '); F= input('Enter Force= '); L= input('Length= '); E= input('Enter Youngs Modulus for Material= '); sigma_y= input('Yield Stress of the Material= '); def= input(' Maximum allowable deflection= '); a= input(' Minimum depth of the beam= '); b= input(' Maximum depth of the beam= '); constrain1= 6*F*(L)*FOS/sigma_y;
x1= a:0.1:b; [r,c]=size(x1); x2=x1; for i=1:1:c x2(1,i)=constrain1/x1(1,i)^2; end constrain2=4*F*(L^3)/E*def; x3=x1; for i=1:1:c x3(1,i)=constrain2/x1(1,i)^3; end plot(x1,x2,x1,x3);
thank you very much for your kind response.
4 个评论
madhan ravi
2018-10-20
transfer this graphical method code to simplex method?
What does that even mean??
Warda Panondi
2018-10-20
编辑:Warda Panondi
2018-10-20
madhan ravi
2018-10-20
give all your input datas to test and simplify . select the whole code and press the code button{} so that its easy to read
Warda Panondi
2018-10-20
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Stress and Strain 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!