How can I solve a linear programming problem (LP) in Matlab?Linear programming (LP) has linear objective function and linear constraints.eg.
minimize: x+ysubject to:
The objective function should be maximize instead of minimize:
f = [-1; -1]; %objective function
A = [0 1;1 -1; 1 1]; %linear constraints on the left side
B = [-1;-5;-3];% right side of linear constraints