Class KHybridSolution

java.lang.Object
com.artelys.kalis.KHybridSolution

public class KHybridSolution extends 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 Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • 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 Details

    • getCPtr

      protected static long getCPtr(KHybridSolution obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class 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.