|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.lp.model.LPModelSolverWithSequentialLoading
public class LPModelSolverWithSequentialLoading
Constructor Summary | |
---|---|
LPModelSolverWithSequentialLoading()
constructor |
Method Summary | |
---|---|
int |
getGlobalIndex(int localIdx,
String offsetId,
VectorOrientation orientation)
|
int |
getGlobalIndex(LPModelIndex modelIndex,
VectorOrientation orientation)
Convert a model index into a global index |
LPSolver |
getLPSolver()
Get the LP solver. |
LPModel |
getModel()
Return the currently loaded model. |
double |
getSolution(LPModelIndex columnIndex)
Return the solution value for a given variable. |
void |
loadModel(LPModel lpModel)
Load a model into the previously set LP solver. |
void |
setLPSolver(LPSolver lpSolver)
Set the solver to which the model shall be connected. |
void |
solve()
Run the LP solver. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LPModelSolverWithSequentialLoading()
Method Detail |
---|
public void setLPSolver(LPSolver lpSolver)
LPModelSolver
setLPSolver
in interface LPModelSolver
public LPSolver getLPSolver()
LPModelSolver
getLPSolver
in interface LPModelSolver
public LPModel getModel()
LPModelSolver
getModel
in interface LPModelSolver
public void solve()
LPModelSolver
solve
in interface LPModelSolver
public double getSolution(LPModelIndex columnIndex)
LPModelSolver
getSolution
in interface LPModelSolver
columnIndex
- the column for which the solution value
shall be retrieved.
public int getGlobalIndex(LPModelIndex modelIndex, VectorOrientation orientation)
LPModelSolver
getGlobalIndex
in interface LPModelSolver
modelIndex
- the model indexorientation
- orientation of the index (rowwise -> the index is a
column index; columnwise -> the index is a row index)
public int getGlobalIndex(int localIdx, String offsetId, VectorOrientation orientation)
public void loadModel(LPModel lpModel)
LPModelSolver
loadModel
in interface LPModelSolver
lpModel
- the model to be loaded.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |