KMin

class KMin : public KConstraint

This class creates a vMin = min(X1,X2,…,Xn) constraint

Example :

KIntVarArray X(...);
KIntVar minOfX(...);
problem.post(KMin("minOfX=max(X)",minOfX,X));

See

KConstraint

Since

2016.1

Public Functions

KMin(const char *name, KIntVar &vMin, KIntVarArray &vars, bool boundConsistency = false)

Primary constructor of vMin = min(X1,X2,…,Xn)

Parameters
  • vMin – variable to be the max of vars

  • vars – variable array whose maximum is seeked

KMin(const char *name, KNumVar &vMin, KNumVarArray &vars)

Primary constructor of vMin = min(X1,X2,…,Xn)

Parameters
  • vMin – variable to be the max of vars

  • vars – variable array whose maximum is seeked

KMin(const KMin &toCopy)

Copy Constructor.