public VariableInteger(string name, int lowerBound, int upperBound) : this() { this.Name = name; this.domainStack = new Stack <DomInt>(); this.domainStack.Push(new DomInt(DomainBinaryInteger.CreateDomain(lowerBound, upperBound), -1)); }
public VariableInteger(string name, IList <int> elements) : this() { this.Name = name; this.domainStack = new Stack <DomInt>(); this.domainStack.Push(new DomInt(DomainBinaryInteger.CreateDomain(elements), -1)); }