Package com.artelys.kalis
Class KHybridSolution
- java.lang.Object
-
- com.artelys.kalis.KHybridSolution
-
public class KHybridSolution extends java.lang.Object
This class represents a solution of a relaxation solver, that is, a mapping
from variables (KNumVar and/or KAuxVar) to their value.
Example :
KXPRSLinearRelaxationSolver mySolver(...); mySolver.solve(); solverMIP.updateSolution(); KHybridSolution * mySol = solverMIP.getSolutionPtr(); mySol->print();
- Since:
- 2016.1
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
swigCMemOwn
-
Constructor Summary
Constructors Modifier Constructor Description KHybridSolution()
Default constructor.protected
KHybridSolution(long cPtr, boolean cMemoryOwn)
KHybridSolution(KHybridSolution arg0)
Copy constructor (forbidden).KHybridSolution(com.artelys.kalis.SWIGTYPE_p_KHybridSolution_I arg0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
protected static long
getCPtr(KHybridSolution obj)
com.artelys.kalis.SWIGTYPE_p_KHybridSolution_I
getInternalPtr()
double
getVal(KAuxVar arg0)
Get the value of a KAuxVar.double
getVal(KNumVar arg0)
Get the value of a KNumVar.void
print()
Print solution.void
setVal(KAuxVar var, double val)
Set the value of a KAuxVar.
void
setVal(KNumVar var, double val)
Set the value of a KNumVar.
-
-
-
Constructor Detail
-
KHybridSolution
protected KHybridSolution(long cPtr, boolean cMemoryOwn)
-
KHybridSolution
public KHybridSolution()
Default constructor.
-
KHybridSolution
public KHybridSolution(com.artelys.kalis.SWIGTYPE_p_KHybridSolution_I arg0)
-
KHybridSolution
public KHybridSolution(KHybridSolution arg0)
Copy constructor (forbidden).
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KHybridSolution obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
delete
public void delete()
-
print
public void print()
Print solution.
-
getInternalPtr
public com.artelys.kalis.SWIGTYPE_p_KHybridSolution_I getInternalPtr()
-
setVal
public void setVal(KNumVar var, double val)
Set the value of a KNumVar.
-
setVal
public void setVal(KAuxVar var, double val)
Set the value of a KAuxVar.
- Parameters:
var
- varaible to modify
-
getVal
public double getVal(KNumVar arg0)
Get the value of a KNumVar.
-
getVal
public double getVal(KAuxVar arg0)
Get the value of a KAuxVar.
-
-