Skip to contents

DynamicOptSolution(model, sol, input_sol) holds the result of solve() on a DynamicOptProblem(): model describes the solved nonlinear program (objective value, constraint violation, iterations, optimized parameters and final time), sol is an ODESolution of the states on the collocation grid (index it with variables, sol$sol[x]; its retcode reports convergence), and input_sol an ODESolution of the inputs (or NULL without inputs).

Usage

DynamicOptSolution(model, sol, input_sol = NULL)

Arguments

model

A list describing the optimization result.

sol

An ODESolution of the states.

input_sol

An ODESolution of the inputs, or NULL.

Value

An object of class DynamicOptSolution.