Package com.artelys.kalis
Class KRelaxationSolverConfigurator
- java.lang.Object
-
- com.artelys.kalis.KCopiableRelaxationSolverConfigurator
-
- com.artelys.kalis.KRelaxationSolverConfigurator
-
- Direct Known Subclasses:
KLinearRelaxationSolverConfigurator
public class KRelaxationSolverConfigurator extends KCopiableRelaxationSolverConfigurator
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KCopiableRelaxationSolverConfigurator
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KRelaxationSolverConfigurator(long cPtr, boolean cMemoryOwn)
KRelaxationSolverConfigurator(com.artelys.kalis.SWIGTYPE_p_KRelaxationSolverConfigurator_I configurator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterEvent(int status)
void
beforeEvent()
void
delete()
protected void
finalize()
void
forceContradiction()
int
getAlgorithm()
protected static long
getCPtr(KRelaxationSolverConfigurator obj)
double
getDoubleControlParam(int numparam)
double
getDoubleControlValue(int control)
int
getIntegerControlParam(int numparam)
int
getIntegerControlValue(int control)
double
getMipAbsoluteOptimalityTolerance()
minimal desired optimality tolerance *double
getMipRelativeOptimalityTolerance()
minimal desired optimality tolerance *int
getNumberOfDoubleControls()
int
getNumberOfIntegerControls()
double
getOptimalityTolerance()
minimal desired optimality tolerance *KProblem
getProblem()
boolean
mustRelax()
void
setAlgorithm(int alg)
Set the algorithm flagvoid
setDoubleControl(int param, double value)
void
setIntControl(int param, int value)
void
setMipAbsoluteOptimalityTolerance(double optimalityTolerance)
Set the minimal desired absolute optimality tolerance (MIP) *void
setMipRelativeOptimalityTolerance(double optimalityTolerance)
Set the minimal desired relative optimality tolerance (MIP) *void
setOptimalityTolerance(double optimalityTolerance)
Set the minimal desired optimality tolerance (LP)*void
setRelaxationSolver(KRelaxationSolver relaxationSolver)
void
setsolveAsMIP(boolean sam)
void
setSolver(KSolver solver)
void
setusePresolve(boolean up)
void
setuseReducedCostFixing(boolean urcf)
boolean
solveAsMIP()
boolean
usePresolve()
boolean
useReducedCostFixing()
-
Methods inherited from class com.artelys.kalis.KCopiableRelaxationSolverConfigurator
getCopyPtr, getCPtr
-
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KRelaxationSolverConfigurator obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKCopiableRelaxationSolverConfigurator
-
delete
public void delete()
- Overrides:
delete
in classKCopiableRelaxationSolverConfigurator
-
getProblem
public KProblem getProblem()
-
beforeEvent
public void beforeEvent()
-
mustRelax
public boolean mustRelax()
-
afterEvent
public void afterEvent(int status)
-
solveAsMIP
public boolean solveAsMIP()
-
usePresolve
public boolean usePresolve()
-
getAlgorithm
public int getAlgorithm()
-
setAlgorithm
public void setAlgorithm(int alg)
Set the algorithm flag
-
setOptimalityTolerance
public void setOptimalityTolerance(double optimalityTolerance)
Set the minimal desired optimality tolerance (LP)*
-
setMipRelativeOptimalityTolerance
public void setMipRelativeOptimalityTolerance(double optimalityTolerance)
Set the minimal desired relative optimality tolerance (MIP) *
-
setMipAbsoluteOptimalityTolerance
public void setMipAbsoluteOptimalityTolerance(double optimalityTolerance)
Set the minimal desired absolute optimality tolerance (MIP) *
-
useReducedCostFixing
public boolean useReducedCostFixing()
-
setuseReducedCostFixing
public void setuseReducedCostFixing(boolean urcf)
-
getOptimalityTolerance
public double getOptimalityTolerance()
minimal desired optimality tolerance *
-
getMipRelativeOptimalityTolerance
public double getMipRelativeOptimalityTolerance()
minimal desired optimality tolerance *
-
getMipAbsoluteOptimalityTolerance
public double getMipAbsoluteOptimalityTolerance()
minimal desired optimality tolerance *
-
setRelaxationSolver
public void setRelaxationSolver(KRelaxationSolver relaxationSolver)
-
setSolver
public void setSolver(KSolver solver)
-
setsolveAsMIP
public void setsolveAsMIP(boolean sam)
-
setusePresolve
public void setusePresolve(boolean up)
-
setIntControl
public void setIntControl(int param, int value)
-
setDoubleControl
public void setDoubleControl(int param, double value)
-
getNumberOfIntegerControls
public int getNumberOfIntegerControls()
-
getNumberOfDoubleControls
public int getNumberOfDoubleControls()
-
getIntegerControlParam
public int getIntegerControlParam(int numparam)
-
getIntegerControlValue
public int getIntegerControlValue(int control)
-
getDoubleControlParam
public double getDoubleControlParam(int numparam)
-
getDoubleControlValue
public double getDoubleControlValue(int control)
-
forceContradiction
public void forceContradiction()
-
-