示例#1
0
 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));
 }
示例#2
0
 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));
 }