KNumNonLinearComb

class KNumNonLinearComb : public KConstraint

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

See

KConstraint

Since

2016.1

Public Types

enum NonLinearCombOperator

Available operators for the constraint.

Values:

enumerator Equal
enumerator GreaterOrEqual
enumerator LessOrEqual

Public Functions

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(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(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(const KNumNonLinearComb &toCopy)

Copy Constructor.

virtual ~KNumNonLinearComb()

Destructor