|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.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 LPModelSolverpublic LPSolver getLPSolver()
LPModelSolver
getLPSolver in interface LPModelSolverpublic LPModel getModel()
LPModelSolver
getModel in interface LPModelSolverpublic void solve()
LPModelSolver
solve in interface LPModelSolverpublic double getSolution(LPModelIndex columnIndex)
LPModelSolver
getSolution in interface LPModelSolvercolumnIndex - the column for which the solution value
shall be retrieved.
public int getGlobalIndex(LPModelIndex modelIndex,
VectorOrientation orientation)
LPModelSolver
getGlobalIndex in interface LPModelSolvermodelIndex - 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 LPModelSolverlpModel - 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 | ||||||||