Optimization Toolbox    

Linear Programming with Equalities and Inequalities

The problem is

and you can load the matrices and vectors A, Aeq, b, beq, f and the lower bounds lb into the MATLAB workspace with

This problem in sc50b.mat has 48 variables, 30 inequalities and 20 equalities.

You can use linprog to solve the problem.

Since the iterative display was set using optimset, the results printed to the command line window are

For this problem the large-scale linear programming algorithm quickly reduces the scaled residuals below the default tolerance of 1e-08.

The exitflag value is positive telling you linprog converged. You can also get the final function value in fval and the number of iterations in output.iterations.


 Linear Least Squares with Bound Constraints Linear Programming with Dense Columns in the Equalities