|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used by all algorithms to access linear programming models.
Field Summary | |
static byte |
EQUAL
Indicates an equality constraint: '==' |
static byte |
GREATER
Indicates a greater than or equal to constraint: '>=' |
static byte |
LESS
Indicates a less than or equal to constraint: '<=' |
Method Summary | |
void |
addConstraint(MatrixI coefficients,
VectorI rightHandSides,
byte[] type)
Adds a set of constraints to the model. |
void |
addConstraint(VectorI coefficients,
double rightHandSide,
byte type)
Adds a single constraint to the model. |
void |
ensureCapacity(int sizeOfRows,
int sizeOfColumns)
Ensures the algorithm has room to hold this many rows and columns. |
double |
getMaxAbsoluteValue()
Gets largest absolute value in the equations. |
double |
getMinAbsoluteValue()
Gets smallest absolute value in the equations. |
double |
getObjectiveValue()
Returns the optimized value of the objective function. |
double |
getRangeMax()
Gets smallest absolute value the algorithm will accept. |
double |
getRangeMin()
Gets smallest absolute value the algorithm will accept. |
VectorI |
getSolution()
Returns the solution vector. |
double |
maximize()
Find the solution that maximizes the objective function. |
double |
minimize()
Find the solution that minimizes the objective function. |
void |
removeAllElements()
Removes all of the coefficients from the algorithm's data structures. |
void |
resize(int sizeOfRows,
int sizeOfColumns)
Changes the size of the model the algorithm can solve. |
void |
setAutomaticScaling(boolean automaticallyScale)
Enables automatic scaling. |
void |
setEqualityFuzz(double fuzz)
Sets the value that is used to relax equailty tests. |
void |
setMaxIterations(int maxIterations)
Sets the maximum number of iterations. |
void |
setObjective(VectorI objective)
Sets the objective function for the model. |
void |
setRange(double minAbsoluteValue,
double maxAbsoluteValue)
Sets smallest and largest absolute value the algorithm will accept. |
Field Detail |
public static final byte LESS
public static final byte EQUAL
public static final byte GREATER
Method Detail |
public void setEqualityFuzz(double fuzz)
public void setMaxIterations(int maxIterations)
public void setRange(double minAbsoluteValue, double maxAbsoluteValue)
public double getRangeMin()
public double getRangeMax()
public double getMinAbsoluteValue()
public double getMaxAbsoluteValue()
public void setAutomaticScaling(boolean automaticallyScale)
public void removeAllElements()
public void resize(int sizeOfRows, int sizeOfColumns)
public void ensureCapacity(int sizeOfRows, int sizeOfColumns)
public void addConstraint(VectorI coefficients, double rightHandSide, byte type)
public void addConstraint(MatrixI coefficients, VectorI rightHandSides, byte[] type)
public void setObjective(VectorI objective)
public double maximize() throws NoSolutionException, UnboundedException, ConvergenceException, ScaleException
public double minimize() throws NoSolutionException, UnboundedException, ConvergenceException, ScaleException
public double getObjectiveValue()
public VectorI getSolution()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |