تصویر:Linear programming 2 constraint example.png
وکیپیڈیا سے

Linear_programming_2_constraint_example.png (6KB, MIME type: image/png
)
Created with Scilab. Released to public domain.
// draw constraints for a linear programming example x=[0:.2:12]; y1=10-x; y2=6-x/2; // draw the two constraints plot(x,y1); plot(x,y2); xstring(-1,7,'x+y=10'); u=gce(); u.data=[5, 5.3]; xstring(-1,0,'x+2y=12'); v=gce(); v.data=[10, .1]; // draw shaded polygon of the solution space xa=[0 0 8 10 0]'; ya=[0 6 2 0 0]'; fa=[1 1 1 1 1]; xfpolys(xa,ya,3); // draw objective function for return of 40 bb=40 y3=-4/9*x+bb/9; plot(x,y3,'r'); xstring(-1,0,'4x+9y=40'); g1=gce(); g1.data=[4.1,1.6]; // draw objective function for return of 50 bb=50 y3=-4/9*x+bb/9; plot(x,y3,'r'); xstring(-1,0,'4x+9y=50'); g2=gce(); g2.data=[4,2.9]; // draw objective function for return of 54 bb=54 y3=-4/9*x+bb/9; plot(x,y3,'r'); xstring(-1,0,'4x+9y=54'); g3=gce(); g3.data=[3.9,4.5]; // limit axes bounds gh=get("current_axes"); gh.data_bounds=[0 0; 12 10];
File history
Legend: (cur) = this is the current file, (del) = delete
this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.
- (ضائع) ( رائج) 20:38, 9 دسمبر 2006 . . Urdutext (تبادلۂ_خیال | شـراکـت) . . 513×491 (5,201 bytes) (Created with Scilab. Released to public domain.)
- Edit this file using an external application
See the setup instructions for more information.
روابط
اس ملف (فائل) سے درج ذیل صفحات رابطہ رکھتے ہیں: