|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LinearProgramSolver
Common interface for available linear program solvers.
Method Summary | |
---|---|
void |
addEqualsConstraint(LinearEqualsConstraint c)
Adds a LinearEqualsConstraint to the solver. |
void |
addLinearBiggerThanEqualsConstraint(LinearBiggerThanEqualsConstraint c)
Adds a LinearBiggerThanEqualsConstraint to the solver. |
void |
addLinearSmallerThanEqualsConstraint(LinearSmallerThanEqualsConstraint c)
Adds a LinearSmallerThanEqualsConstraint to the solver. |
java.lang.String[] |
getLibraryNames()
Returns the names of any system library that the solver depends on. |
java.lang.String |
getName()
Returns the name of this linear program solver. |
void |
setTimeconstraint(int t)
|
double[] |
solve(LinearProgram lp)
Tries to solve a linear program. |
Method Detail |
---|
double[] solve(LinearProgram lp)
lp
- the linear program to be solved
void addLinearBiggerThanEqualsConstraint(LinearBiggerThanEqualsConstraint c)
LinearBiggerThanEqualsConstraint
to the solver.
Note that all existing constraints of a LinearProgram
are
automatically transfered by the solve
method. Therefore, this
method is only needed explicitly, if an additional constrained is to be
added to the model without wanting to alter the LinearProgram
itself.
Usually, this method is needed and used by the programers in deeper parts
of the code, which the user has not worry about.
c
- the constraint to be addedvoid addLinearSmallerThanEqualsConstraint(LinearSmallerThanEqualsConstraint c)
LinearSmallerThanEqualsConstraint
to the solver.
Note that all existing constraints of a LinearProgram
are
automatically transfered by the solve
method. Therefore, this
method is only needed explicitly, if an additional constrained is to be
added to the model without wanting to alter the LinearProgram
itself.
Usually, this method is needed and used by the programers in deeper parts
of the code, which the user has not worry about.
c
- the constraint to be addedvoid addEqualsConstraint(LinearEqualsConstraint c)
LinearEqualsConstraint
to the solver.
Note that all existing constraints of a LinearProgram
are
automatically transfered by the solve
method. Therefore, this
method is only needed explicitly, if an additional constrained is to be
added to the model without wanting to alter the LinearProgram
itself.
Usually, this method is needed and used by the programers in deeper parts
of the code, which the user has not worry about.
c
- the constraint to be addedjava.lang.String getName()
java.lang.String[] getLibraryNames()
SolverFactory
ensures that the required libraries are loaded. If the solver factory failed to load any library,
it will not return an instance of this solver.
void setTimeconstraint(int t)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |