public VariableVector Restrict([CanBeNull] VariableVector lowerBound) { if (lowerBound != null) { AtLeastConstraint.CreateAtLeastConstraint(_x, lowerBound._x); AtLeastConstraint.CreateAtLeastConstraint(_y, lowerBound._y); } return(this); }
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)); }
public VariableVector WithXOf([NotNull] VariableVector other) { return(new VariableVector("X<" + other.ShortName + "&Y<" + ShortName, other.X, Y)); }