public TrajectoryQuantity AddQuantity(TrajectoryQuantityType type, double[] min, double[] max) { var q = new TrajectoryQuantity(Program, type, min, max); AddQuantity(q); return(q); }
public TrajectoryQuantity(TrajectoryNLP program, TrajectoryQuantityType type, double[] min, double[] max) { Debug.Assert(min.Length == max.Length); Program = program; QType = type; Length = min.Length; DefaultMin = min; DefaultMax = max; }
public TrajectoryQuantity AddQuantity(TrajectoryQuantityType type, double min, double max) { return(AddQuantity(type, new[] { min }, new[] { max })); }