MATLAB: How to write matlab code for simplex equation.

simplex code

How to write matlab code for the simplex equation to maximize P=7×1+8×2+10×3, where x1,x2,x3>=0, and the constraints are assembly and fabrication time labor where equations for Assembly is x1+x2+2×3<=800, and for Fabrication is 2×1+3×2+2×3<=1000.

Best Answer

You would use LINPROG.