How do I solve a linear optimization problem in MATLAB without the linprog function? Please help!!
I want to find design parameters (optimum values).
I have the coefficient of design variables, coefficient of matrix constraints, lower and upper bounds. Thank you so much!!!!
% Coefficient of design variable that formulates objective function
obj = -[-0.23, -0.24, 0.96, 0.30, 0.34]; % Note: As MATLAB only minimizes, to maximize (profit), we minimize (-profit)
% Coefficient matrix of constraints equation (LHS and RHS)
A = [1, 1, 0, 0, 0; 1, 1.08, 0, 0, 0; 0, 0, 0, 0, 1; 0, 0, 41, 1, -4; -4.5, 10, 1, 3; -1, -1, 1, 1, 1]; % LHS
b = [19584; 20150; 31680; 48000; 0; 0]; % RHS
% Equality constraints
Aeq = [];
beq = [];
% Lower bounds on the design parameters
lb = [0, 0, 0, 0, 0]; % design parameter values can't be negative
ub = [];