stagecost
Class property.
- objective.stagecost
Stage cost \(\ell(t,x,u)\).
The return value of this attribute depends on how the objective is initialized. If it is initialized as a quadratic objective by
LQP()
a list containing the arrays defining the stage cost are returned. If the obejctive is initalized by possibly nonlinear callable functions the function defining the stage cost is returned. Note, that even ifautonomous
is True the returned function depends on the time \(t\) and always has the form \(\ell(t,x,u)\).- Type:
callable or list of array