(self, nsteps)
| 28 | assert isinstance(ep.stage_model.dynamics, ep.TwistModelExplicit) |
| 29 | |
| 30 | def test_cost(self, nsteps): |
| 31 | import example_problem as ep |
| 32 | |
| 33 | cost = ep.cost |
| 34 | cost_data = cost.createData() |
| 35 | cost.evaluate(ep.x0, ep.u0, cost_data) |
| 36 | cost.computeGradients(ep.x0, ep.u0, cost_data) |
| 37 | cost.computeHessians(ep.x0, ep.u0, cost_data) |
| 38 | assert isinstance(ep.stage_model.cost, ep.MyQuadCost) |
| 39 | |
| 40 | def test_stage(self, nsteps): |
| 41 | import example_problem as ep |
nothing calls this directly
no test coverage detected