add_termianlcost
Class method.
- add_termianlcost(self, terminalcost)
Add terminal cost to the objective.
The terminal cost must be a callable function of the form \(F(t,x)\) or \(F(x)\) in the autonomous case. If terminal cost already exists they will be over written.
- Parameters:
terminalcost (callable) – A function defining the terminal cost of the optimal control problem. Has to be of the form \(F(t,x)\) or \(F(x)\) in the autonomous case.