public class CmplSolution
extends java.lang.Object
Constructor and Description |
---|
CmplSolution()
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<CmplSolElement> |
constraints()
Returns a list of CmplSolLine objects for the constraints
of the current solution
|
long |
idx()
Returns the index of the current solution
|
protected void |
setCon(CmplSolElement con)
Setter for the constraint list
Used by CmplSolutions.readSolution
|
protected void |
setIdx(long _idx)
Setter of the solution index
Used by CmplSolutions.readSolution
|
protected void |
setStatus(java.lang.String _status)
Setter for the solution status
Used by CmplSolutions.readSolution
|
protected void |
setValue(double value)
Setter for the obj value
Used by CmplSolutions.readSolution
|
protected void |
setVar(CmplSolElement var)
Setter for the variable list
Used by CmplSolutions.readSolution
|
java.lang.String |
status()
Returns the a string with the status of the current solution
provided by the invoked solver
|
double |
value()
Returns the value of the objective function of the current solution
|
java.util.ArrayList<CmplSolElement> |
variables()
Returns a list of CmplSolLine objects for the variables of the current solution
|
public long idx()
protected void setIdx(long _idx)
_idx
- solution indexpublic java.lang.String status()
protected void setStatus(java.lang.String _status)
_status
- solution statuspublic double value()
protected void setValue(double value)
value
- obj valuepublic java.util.ArrayList<CmplSolElement> variables()
protected void setVar(CmplSolElement var)
var
- CmplSolElementpublic java.util.ArrayList<CmplSolElement> constraints()
protected void setCon(CmplSolElement con)
con
- CmplSolElement