Linear Programming

An FAQ of Linear Programming is here.

This is the source codes of Java version of lp_solve 2.0 written by Michel Berkelaar.

The Java version does not recognize lp format or mps format. It does not take a file as input. You should specify the objective function and constraints by the methods provided by class solve, such as

solve.set_obj_fn()
solve.str_set_obj_fn()
solve.set_maxim()
solve.add_constraint()
solve.str_add_constraint()
solve.set_int()
and call
solve.solve()
to solve the problem, then call
solve.print_solution()
to print out results. Some sample usage of the Linear Programming package are here . This is a straight forward translation from the C code of lp_solve 2.0. Almost all variables and methods use the same name as in lp_solve 2.0.
go to Network Design Tool

go to Network Design Tool Help

Network Design Group, Washington University in St. Louis
Send questions to

Hongzhou Ma ([email protected])
Inderjeet Singh ([email protected])
Last modified on Wednesday, 26-Feb-1997 15:46:25 CST