Skip to content

Commit 72c0be8

Browse files
committed
update doc
1 parent 68e864b commit 72c0be8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ocs2_ipm/include/ocs2_ipm/IpmInitialization.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ inline vector_t initializeDualVariable(const vector_t& slack, scalar_t barrierPa
8080
* @param input : Input
8181
* @param initialSlackLowerBound : Lower bound of the initial slack variables. Corresponds to `slack_bound_push` option of IPOPT.
8282
* @param initialSlackMarginRate : Additional margin rate of the initial slack variables. Corresponds to `slack_bound_frac` option of IPOPT.
83-
* @return Initialized slack variable.
83+
* @return Initialized slack variables of the intermediate state-only (first) and state-input (second) constraints.
8484
*/
8585
std::pair<vector_t, vector_t> initializeIntermediateSlackVariable(OptimalControlProblem& ocpDefinition, scalar_t time,
8686
const vector_t& state, const vector_t& input,
@@ -94,7 +94,7 @@ std::pair<vector_t, vector_t> initializeIntermediateSlackVariable(OptimalControl
9494
* @param state : Terminal state
9595
* @param initialSlackLowerBound : Lower bound of the initial slack variables. Corresponds to `slack_bound_push` option of IPOPT.
9696
* @param initialSlackMarginRate : Additional margin rate of the initial slack variables. Corresponds to `slack_bound_frac` option of IPOPT.
97-
* @return Initialized slack variable.
97+
* @return Initialized slack variable of the terminal state-only constraints.
9898
*/
9999
vector_t initializeTerminalSlackVariable(OptimalControlProblem& ocpDefinition, scalar_t time, const vector_t& state,
100100
scalar_t initialSlackLowerBound, scalar_t initialSlackMarginRate);
@@ -107,7 +107,7 @@ vector_t initializeTerminalSlackVariable(OptimalControlProblem& ocpDefinition, s
107107
* @param state : Pre-event state
108108
* @param initialSlackLowerBound : Lower bound of the initial slack variables. Corresponds to `slack_bound_push` option of IPOPT.
109109
* @param initialSlackMarginRate : Additional margin rate of the initial slack variables. Corresponds to `slack_bound_frac` option of IPOPT.
110-
* @return Initialized slack variable.
110+
* @return Initialized slack variable of the pre-jump state-only constraints.
111111
*/
112112
vector_t initializePreJumpSlackVariable(OptimalControlProblem& ocpDefinition, scalar_t time, const vector_t& state,
113113
scalar_t initialSlackLowerBound, scalar_t initialSlackMarginRate);

0 commit comments

Comments
 (0)