|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LPModelSolver
A class which connects an LP model to a solver. Loads the model into the solver and retrieves the solution for the domain variables of the model. Responsible for assigning global indices to model indices, i.e., the LP model solver places the components with their abstract model indices into a combined LP with global indices.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void setLPSolver(LPSolver lpSolver)
lpSolver
- LPSolver getLPSolver()
int getGlobalIndex(LPModelIndex modelIndex, VectorOrientation orientation)
modelIndex
- the model indexorientation
- orientation of the index (rowwise -> the index is a
column index; columnwise -> the index is a row index)
void loadModel(LPModel lpModel)
lpModel
- the model to be loaded.void solve()
double getSolution(LPModelIndex columnIndex)
columnIndex
- the column for which the solution value
shall be retrieved.
LPModel getModel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |