コード例 #1
0
            public TrajectoryQuantity AddQuantity(TrajectoryQuantityType type, double[] min, double[] max)
            {
                var q = new TrajectoryQuantity(Program, type, min, max);

                AddQuantity(q);
                return(q);
            }
コード例 #2
0
 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;
 }
コード例 #3
0
 public TrajectoryQuantity AddQuantity(TrajectoryQuantityType type, double min, double max)
 {
     return(AddQuantity(type, new[] { min }, new[] { max }));
 }