|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Convenient Groovy frontend for a solver class written in Java.
Field Summary | |
---|---|
Map |
objective
|
String |
solverId
|
Constructor Summary | |
GLPSolver()
|
Method Summary | |
---|---|
GLPModel |
getGLPModel()
Returns the model loaded into the solver. |
int |
getLocalColumnIndex(String varId, Object index)
Convert a variable name and an index into a (local) column index, i.e., an index local to the set of variables with the given name. |
double |
getSolution(GTerm term)
Evaluate a term with the current solution, i.e., replace the variable in the terms with its solution value. |
double |
getSolution(String termDef)
Variant of getSolution() where the term is given as String. |
double |
getSolution(String offsetId, Object idx)
Return the value of a given variable. |
byte |
getSolutionStatus()
Get the solution status of the solver. |
double |
getSolutionValue()
Get the objective value of the solution. |
void |
setLPSolver(String solver)
Set the LP solver engine. |
void |
setObjective(String obj)
Set the objective of the solver. |
void |
solveMIP()
Run the MIP solver. |
Constructor Detail |
---|
GLPSolver()
Method Detail |
---|
public GLPModel getGLPModel()
int getLocalColumnIndex(String varId, Object index)
public double getSolution(GTerm term)
public double getSolution(String termDef)
public double getSolution(String offsetId, Object idx)
public byte getSolutionStatus()
public double getSolutionValue()
public void setLPSolver(String solver)
public void setObjective(String obj)
public void solveMIP()