See: Description
Package | Description |
---|---|
com.quantego.clp |
Download the latest jar file and add it to your build path, or clone the source into a local git repository.
To build a new linear programming model, create a CLP
instance. Instances of all other classes are created from there. Builders are provided to get as close as possible to algebraic modeling.
To get started quickly, check out the following functions:
CLP.addVariable()
adds a CLPVariable
to the model.CLPVariable
serves as a builder for variables. For example ub(double)
adds the variable upper bound, or obj(double)
sets the objective coefficient.
CLP.createExpression()
provides a builder to create linear expressions. Simply call CLPExpression.leq(double)
to add a CLPExpression
as less-or-equal CLPConstraint
.
CLP.toString()
returns the complete model in .lp format, for cross-validation. To solve the model use CLP.minimize()
or CLP.maximize()
.
The solution can be obtained via getSolution()
.