@@ -57,15 +57,17 @@ class FlatSystem(NonlinearIOSystem):
5757 -----
5858 The class must implement two functions:
5959
60- zflag = flatsys.foward(x, u, params)
60+ ``zflag = flatsys.foward(x, u, params)``
61+
6162 This function computes the flag (derivatives) of the flat output.
6263 The inputs to this function are the state 'x' and inputs 'u' (both
6364 1D arrays). The output should be a 2D array with the first
6465 dimension equal to the number of system inputs and the second
6566 dimension of the length required to represent the full system
6667 dynamics (typically the number of states)
6768
68- x, u = flatsys.reverse(zflag, params)
69+ ``x, u = flatsys.reverse(zflag, params)``
70+
6971 This function system state and inputs give the the flag (derivatives)
7072 of the flat output. The input to this function is an 2D array whose
7173 first dimension is equal to the number of system inputs and whose
@@ -737,19 +739,20 @@ def solve_flat_ocp(
737739
738740 Notes
739741 -----
740- 1. Additional keyword parameters can be used to fine tune the behavior
741- of the underlying optimization function. See `minimize_*` keywords
742- in `optimal.OptimalControlProblem` for more information.
743-
744- 2. The return data structure includes the following additional attributes:
745- * success : bool indicating whether the optimization succeeded
746- * cost : computed cost of the returned trajectory
747- * message : message returned by optimization if success if False
748-
749- 3. A common failure in solving optimal control problem is that the
750- default initial guess violates the constraints and the optimizer
751- can't find a feasible solution. Using the `initial_guess` parameter
752- can often be used to overcome these errors.
742+ Additional keyword parameters can be used to fine tune the behavior of
743+ the underlying optimization function. See `minimize_*` keywords in
744+ `optimal.OptimalControlProblem` for more information.
745+
746+ The return data structure includes the following additional attributes:
747+
748+ * success : bool indicating whether the optimization succeeded
749+ * cost : computed cost of the returned trajectory
750+ * message : message returned by optimization if success if False
751+
752+ A common failure in solving optimal control problem is that the default
753+ initial guess violates the constraints and the optimizer can't find a
754+ feasible solution. Using the `initial_guess` parameter can often be
755+ used to overcome these errors.
753756
754757 """
755758 #
0 commit comments