Пример #1
0
 public VariableVector Restrict([CanBeNull] VariableVector lowerBound)
 {
     if (lowerBound != null)
     {
         AtLeastConstraint.CreateAtLeastConstraint(_x, lowerBound._x);
         AtLeastConstraint.CreateAtLeastConstraint(_y, lowerBound._y);
     }
     return(this);
 }
Пример #2
0
 public VariableVector Restrict([CanBeNull] VariableVector lowerBound, [CanBeNull] VariableVector upperBound)
 {
     if (upperBound != null)
     {
         AtLeastConstraint.CreateAtLeastConstraint(upperBound._x, _x);
         AtLeastConstraint.CreateAtLeastConstraint(upperBound._y, _y);
     }
     return(Restrict(lowerBound));
 }
Пример #3
0
 public VariableVector WithXOf([NotNull] VariableVector other)
 {
     return(new VariableVector("X<" + other.ShortName + "&Y<" + ShortName, other.X, Y));
 }