Class KFloatVarBranchingScheme

java.lang.Object
com.artelys.kalis.KBranchingScheme
com.artelys.kalis.KFloatVarBranchingScheme

public class KFloatVarBranchingScheme extends KBranchingScheme
This branching scheme is suited for branching on KFloatVar objects.

Since:
2016.1
See Also:
KIntVarBranchingScheme KAssignAndForbidd KSplitDomain KSettleDisjunction KProbe
  • Constructor Details

    • KFloatVarBranchingScheme

      protected KFloatVarBranchingScheme(long cPtr, boolean cMemoryOwn)
    • KFloatVarBranchingScheme

      public KFloatVarBranchingScheme()
      Constructor
    • KFloatVarBranchingScheme

      public KFloatVarBranchingScheme(KProblem problem)
      Constructor with KProblem
    • KFloatVarBranchingScheme

      public KFloatVarBranchingScheme(KFloatVarBranchingScheme toCopy)
      Copy constructor
  • Method Details

    • getCPtr

      protected static long getCPtr(KFloatVarBranchingScheme obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class KBranchingScheme
    • delete

      public void delete()
      Overrides:
      delete in class KBranchingScheme
    • swigDirectorDisconnect

      protected void swigDirectorDisconnect()
      Overrides:
      swigDirectorDisconnect in class KBranchingScheme
    • swigReleaseOwnership

      public void swigReleaseOwnership()
      Overrides:
      swigReleaseOwnership in class KBranchingScheme
    • swigTakeOwnership

      public void swigTakeOwnership()
      Overrides:
      swigTakeOwnership in class KBranchingScheme
    • getProblem

      public KProblem getProblem()
      Problem getter
      Overrides:
      getProblem in class KBranchingScheme
    • selectNextBranchingVar

      public KNumVar selectNextBranchingVar()
      Select the next KNumVar to branch on when one branch has been explored
    • finishedBranching

      public boolean finishedBranching(KNumVar branchingObject, com.artelys.kalis.SWIGTYPE_p_double branchingInformation, int currentBranchNumber)
      Return true IFF branching is completed on one specific branch of the branch and bound

      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • getNextBranch

      public com.artelys.kalis.SWIGTYPE_p_double getNextBranch(KNumVar branchingObject, com.artelys.kalis.SWIGTYPE_p_double branchingInformation, int currentBranchNumber)
      Return the next branch

      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • goDownBranch

      public void goDownBranch(KNumVar branchingObject, com.artelys.kalis.SWIGTYPE_p_double branchingInformation, int currentBranchNumber)
      This method is called once a branch has been selected and a decision must be taken

      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • goUpBranch

      public void goUpBranch(KNumVar branchingObject, com.artelys.kalis.SWIGTYPE_p_double branchingInformation, int currentBranchNumber)
      This method is called upon backtrack on a specific branch

      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • freeAllocatedObjectsForBranching

      public void freeAllocatedObjectsForBranching(KNumVar branchingObject, com.artelys.kalis.SWIGTYPE_p_double branchingInformation)
      This method is called upon finishing branching for the current node and allows freeing objects created at the
      current node

      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
    • _selectNextBranchingObject

      public com.artelys.kalis.SWIGTYPE_p_void _selectNextBranchingObject()
      Description copied from class: KBranchingScheme
      Select the next object (variable in general) to branch on when one branch
      has been explored.
      Overrides:
      _selectNextBranchingObject in class KBranchingScheme
    • _finishedBranching

      public boolean _finishedBranching(com.artelys.kalis.SWIGTYPE_p_void branchingObject, com.artelys.kalis.SWIGTYPE_p_void branchingInformation, int currentBranchNumber)
      Description copied from class: KBranchingScheme
      Return true IFF branching is completed on one specific branch of the
      branch and bound.

      Overrides:
      _finishedBranching in class KBranchingScheme
      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • _getNextBranch

      public com.artelys.kalis.SWIGTYPE_p_void _getNextBranch(com.artelys.kalis.SWIGTYPE_p_void branchingObject, com.artelys.kalis.SWIGTYPE_p_void branchingInformation, int currentBranchNumber)
      Description copied from class: KBranchingScheme
      Return the next branch to explore

      Overrides:
      _getNextBranch in class KBranchingScheme
      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • _goDownBranch

      public void _goDownBranch(com.artelys.kalis.SWIGTYPE_p_void branchingObject, com.artelys.kalis.SWIGTYPE_p_void branchingInformation, int currentBranchNumber)
      Description copied from class: KBranchingScheme
      This method is called once a branch has been selected and a decision must
      be taken.

      Overrides:
      _goDownBranch in class KBranchingScheme
      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • _goUpBranch

      public void _goUpBranch(com.artelys.kalis.SWIGTYPE_p_void branchingObject, com.artelys.kalis.SWIGTYPE_p_void branchingInformation, int currentBranchNumber)
      Description copied from class: KBranchingScheme
      This method is called upon backtrack on a specific branch

      Overrides:
      _goUpBranch in class KBranchingScheme
      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
      currentBranchNumber - the current branch number
    • _freeAllocatedObjectsForBranching

      public void _freeAllocatedObjectsForBranching(com.artelys.kalis.SWIGTYPE_p_void branchingObject, com.artelys.kalis.SWIGTYPE_p_void branchingInformation)
      Description copied from class: KBranchingScheme
      This method is called upon finishing branching for the current node and
      allows freeing objects created at the current node.

      Overrides:
      _freeAllocatedObjectsForBranching in class KBranchingScheme
      Parameters:
      branchingObject - the branching object
      branchingInformation - the branching information
    • getCopyPtr

      public KBranchingScheme getCopyPtr()
      Overrides:
      getCopyPtr in class KBranchingScheme
    • getInstanceCopyPtr

      public KBranchingScheme getInstanceCopyPtr(KProblem problem)
      Overrides:
      getInstanceCopyPtr in class KBranchingScheme