8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f9da1 commit 1441922Copy full SHA for 1441922
control/flatsys/flatsys.py
@@ -436,6 +436,12 @@ def point_to_point(
436
warnings.warn("basis too small; solution may not exist")
437
438
if cost is not None or trajectory_constraints is not None:
439
+ # Make sure that we have enough timepoints to evaluate
440
+ if timepts.size < 3:
441
+ raise ControlArgument(
442
+ "There must be at least three time points if trajectory"
443
+ " cost or constraints are specified")
444
+
445
# Search over the null space to minimize cost/satisfy constraints
446
N = sp.linalg.null_space(M)
447
0 commit comments