Class 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 Detail

      • swigCMemOwn

        protected transient boolean swigCMemOwn
    • 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

      • finalize

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