KIntVarArray

class KIntVarArray : public ArtelysList<KIntVar>

This class implements an array of KIntVar with enumerated (finite) domains

Example :

KProblem  p(...);
// T is an array of KIntVar T0 T1 T2 T3 T4 with domain [0..10]
KIntVarArray T(p,5,0,10,"T");

See

KIntVar

Since

2016.1

Public Functions

KIntVarArray()

default constructor

KIntVarArray(KProblem &problem, int nbKIntVar, int minValue, int maxValue, const char *name = nullptr)

This constructor allows to build an array of variables with the same bounds.