|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.opt.lp.DenseLPBase
The interface used by all algorithms to access linear programming models.
Field Summary | |
protected boolean |
_autoScale
|
protected double[][] |
_cof
|
protected double |
_fuzz
|
protected double |
_maxAbsVal
|
protected int |
_maxIt
|
protected double |
_maxRange
|
protected int |
_maxRows
|
protected double |
_minAbsVal
|
protected double |
_minRange
|
protected int |
_nonZeroCnt
|
protected double[] |
_obj
|
protected double[] |
_rhs
|
protected int |
_sizeOfColumns
|
protected int |
_sizeOfRows
|
protected boolean |
_solved
|
protected byte[] |
_typ
|
Fields inherited from interface drasys.or.opt.lp.LinearProgrammingI |
EQUAL,
GREATER,
LESS |
Constructor Summary | |
DenseLPBase()
|
|
DenseLPBase(int maxRows,
int sizeOfColumns)
|
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 maxRows,
int sizeOfColumns)
Ensures the algorithm has room to hold this many rows. |
double |
getMaxAbsoluteValue()
Gets largest absolute value in the equations. |
double |
getMinAbsoluteValue()
Gets smallest absolute value in the equations. |
double |
getRangeMax()
Gets smallest absolute value the algorithm will accept. |
double |
getRangeMin()
Gets smallest absolute value the algorithm will accept. |
void |
removeAllElements()
Removes all of the coefficients from the algorithm's data structures. |
void |
resize(int maxRows,
int sizeOfColumns)
Removes all the coefficients and 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)
Set 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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int _maxRows
protected int _sizeOfRows
protected int _sizeOfColumns
protected int _maxIt
protected int _nonZeroCnt
protected double _fuzz
protected double _minRange
protected double _maxRange
protected double _minAbsVal
protected double _maxAbsVal
protected byte[] _typ
protected double[] _obj
protected double[] _rhs
protected double[][] _cof
protected boolean _solved
protected boolean _autoScale
Constructor Detail |
public DenseLPBase()
public DenseLPBase(int maxRows, int sizeOfColumns)
Method Detail |
public void removeAllElements()
public void resize(int maxRows, int sizeOfColumns)
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 ensureCapacity(int maxRows, 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |