KNumEqualXc

class KNumEqualXc : public KConstraint

This class creates a X == C constraint

Example :

KNumVar X(...);
// ...
problem.post(X == 5);
// or
problem.post(KNumEqualXc(X,5));

See

KConstraint

Since

2016.1

Public Functions

KNumEqualXc(const KNumVar &v1, double c)

Primary constructor of v1 == C

Parameters
  • v1 – the variable

  • c – the constant

KNumEqualXc(const KNumEqualXc &toCopy)

Copy constructor.