KNumXEqualsYSquared

class KNumXEqualsYSquared : public KConstraint

This class creates a X = Y^2 constraint

Example :

KNumVar X(...);
KNumVar Y(...);
// ..
problem.post(KNumXEqualsYSquared(X, Y));

See

KConstraint

Since

2016.1

Public Functions

KNumXEqualsYSquared(const KNumVar &v1, const KNumVar &v2)

Primary constructor of v1 = v2^2

Parameters
  • v1 – the v1 variable

  • v2 – the v2 variable

KNumXEqualsYSquared(const KNumXEqualsYSquared &toCopy)

Copy constructor.