Class KNumNonLinearComb

java.lang.Object
com.artelys.kalis.KConstraint
com.artelys.kalis.KNumNonLinearComb

public class KNumNonLinearComb extends KConstraint
This class represents a constraint to propagate any non linear constraint of
the form KNonLinearTerm COMPARATOR KNonLinearTerm.

Since:
2016.1
See Also:
KConstraint

  • Constructor Details

    • KNumNonLinearComb

      protected KNumNonLinearComb(long cPtr, boolean cMemoryOwn)
    • KNumNonLinearComb

      public KNumNonLinearComb(KProblem prob, KNonLinearTerm left, KNonLinearTerm right, int NonlinCombOperator)
      Primary Constructor

      Parameters:
      prob - the problem
      left - the left non linear term
      right - the right non linear term
      NonlinCombOperator - operator of the non linear constraint {<=,>=,==}
    • KNumNonLinearComb

      public KNumNonLinearComb(KProblem prob, KNonLinearTerm left, KNumVar right, int NonlinCombOperator)
      Constructor with a non linear term on the left and a variable on the right

      Parameters:
      prob - the problem
      left - the left non linear term
      right - the variable on the right
      NonlinCombOperator - operator of the non linear constraint {<=,>=,==}
    • KNumNonLinearComb

      public KNumNonLinearComb(KProblem prob, KNonLinearTerm left, double right, int NonlinCombOperator)
      Constructor with a non linear term on the left and a real on the right

      Parameters:
      prob - the problem
      left - the left non linear term
      right - the value on the right
      NonlinCombOperator - operator of the non linear constraint {<=,>=,==}
    • KNumNonLinearComb

      public KNumNonLinearComb(KNumNonLinearComb toCopy)
      Copy Constructor
  • Method Details

    • getCPtr

      protected static long getCPtr(KNumNonLinearComb obj)
    • finalize

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

      public void delete()
      Overrides:
      delete in class KConstraint
    • getConstraintIPtr

      public com.artelys.kalis.SWIGTYPE_p_void getConstraintIPtr()