KNumXOperatorCosY

class KNumXOperatorCosY : public KConstraint

This class creates a X {==,<=,>=} cos(Y) constraint

Example :

KNumVar X(...);
KNumVar Y(...);
// ...
problem.post(KNumXOperatorCosY(X, Y, GEQ));

See

KConstraint

Since

2016.1

Public Functions

KNumXOperatorCosY(const KNumVar &v1, const KNumVar &v2, int op)

Primary constructor of v1 [op] cos( v2 )

Parameters
  • v1 – the v1 variable

  • v2 – the v2 variable

  • op – operator for the constraint (GEQ, LEQ, EQ)

KNumXOperatorCosY(const KNumXOperatorCosY &toCopy)

Copy constructor.