jCMPL
Class CmplSolution

java.lang.Object
  extended by jCMPL.CmplSolution

public class CmplSolution
extends java.lang.Object

Solution handling of jCMPL


Constructor Summary
CmplSolution()
          Constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmplSolution

public CmplSolution()
Constructor

Method Detail

idx

public long idx()
Returns the index of the current solution

Returns:
index

setIdx

protected void setIdx(long _idx)
Setter of the solution index Used by CmplSolutions.readSolution

Parameters:
_idx - solution index

status

public java.lang.String status()
Returns the a string with the status of the current solution provided by the invoked solver

Returns:
solution status

setStatus

protected void setStatus(java.lang.String _status)
Setter for the solution status Used by CmplSolutions.readSolution

Parameters:
_status - solution status

value

public double value()
Returns the value of the objective function of the current solution

Returns:
Objective value

setValue

protected void setValue(double value)
Setter for the obj value Used by CmplSolutions.readSolution

Parameters:
value - obj value

variables

public java.util.ArrayList<CmplSolElement> variables()
Returns a list of CmplSolLine objects for the variables of the current solution

Returns:
list of CmplSolLine objects

setVar

protected void setVar(CmplSolElement var)
Setter for the variable list Used by CmplSolutions.readSolution

Parameters:
var - CmplSolElement

constraints

public java.util.ArrayList<CmplSolElement> constraints()
Returns a list of CmplSolLine objects for the constraints of the current solution

Returns:
list of CmplSolLine objects

setCon

protected void setCon(CmplSolElement con)
Setter for the constraint list Used by CmplSolutions.readSolution

Parameters:
con - CmplSolElement