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
madhan ravi 2018 年 10 月 20 日
transfer this graphical method code to simplex method?
What does that even mean??
Warda Panondi
Warda Panondi 2018 年 10 月 20 日
編集済み: Warda Panondi 2018 年 10 月 20 日
the code is in graphical method solution. and there is any way I could transfer this into a simplex method or not possible at all?
madhan ravi
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
Warda Panondi 2018 年 10 月 20 日
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= ');
darshan1= 6*F*(L)*FOS/sigma_y;
x1= a:0.001:b;
[r,c]=size(x1);
x2=x1;
for i=1:1:c
x2(1,i)=darshan1/x1(1,i)^2;
end
darshan2=4*F*(L^3)/E*def;
x3=x1;
for i=1:1:c
x3(1,i)=darshan2/x1(1,i)^3;
end
plot(x1,x2,x1,x3);
thank you sir madhan ravi.

サインインしてコメントする。

 採用された回答

madhan ravi
madhan ravi 2018 年 10 月 20 日
編集済み: madhan ravi 2018 年 10 月 20 日

0 投票

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= ');
darshan1= 6*F*(L)*FOS/sigma_y;
darshan2=4*F*(L^3)/E*def;
x1= a:0.001:b;
[r,c]=size(x1);
x2=darshan1./x1.^2;
x3=darshan2./x1.^3;
plot(x1,x2,'r',x1,x3,'b');

3 件のコメント

madhan ravi
madhan ravi 2018 年 10 月 20 日
can't simplify further
Warda Panondi
Warda Panondi 2018 年 10 月 20 日
Thank you very much, sir, for your response and especially to your time sir.
madhan ravi
madhan ravi 2018 年 10 月 20 日
anytime :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStress and Strain についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by