stagecosts

Class method.

stagecosts(self, t, x, u)

Evaluate stage cost of the objective.

Parameters:
  • t (float) – Time instant at which the stage cost is evaluated.

  • x (array) – Current state at which the stage cost is evaluated.

  • u (array) – Current control at which the stage cost is evaluated.

Returns:

Stage cost evaluated at the given input values.

Return type:

array