- 3.0.2 optimal control module.
|
Classes | |
class | ControlInputGenConstraint |
class | StateGenConstraint |
Functions | |
std::shared_ptr< ct::core::ControlledSystem< state_dim, control_dim > > | oscillatorDynamics (new ct::core::SecondOrderSystem(w_n, zeta)) |
std::shared_ptr< ct::core::SystemLinearizer< state_dim, control_dim > > | linearizer (new ct::core::SystemLinearizer< state_dim, control_dim >(oscillatorDynamics)) |
void | compareSolutions (const ct::core::StateFeedbackController< state_dim, control_dim > &sol1, const ct::core::StateFeedbackController< state_dim, control_dim > &sol2) |
NLOptConSolver< state_dim, control_dim > | generateSolver (ContinuousOptConProblem< state_dim, control_dim > ocp) |
ContinuousOptConProblem< state_dim, control_dim > | generateUnconstrainedOCP () |
TEST (Constrained_NLOC_Test, comparePureControlConstraints) | |
TEST (Constrained_NLOC_Test, comparePureStateConstraints) | |
int | main (int argc, char **argv) |
Variables | |
const bool | verbose = false |
const size_t | state_dim = ct::core::SecondOrderSystem::STATE_DIM |
const size_t | control_dim = ct::core::SecondOrderSystem::CONTROL_DIM |
StateVector< state_dim > | x0 = StateVector<state_dim>::Zero() |
ct::core::Time | timeHorizon = 3.0 |
const double | w_n = 0.1 |
const double | zeta = 5.0 |
std::string | nloc_test_dir = std::string(NLOC_TEST_DIR) |
std::shared_ptr<ct::core::ControlledSystem<state_dim, control_dim> > oscillatorDynamics | ( | new | ct::core::SecondOrderSystemw_n, zeta | ) |
Referenced by generateUnconstrainedOCP(), and main().
std::shared_ptr<ct::core::SystemLinearizer<state_dim, control_dim> > linearizer | ( | new ct::core::SystemLinearizer< state_dim, control_dim > | oscillatorDynamics | ) |
Referenced by generateUnconstrainedOCP(), and main().
void compareSolutions | ( | const ct::core::StateFeedbackController< state_dim, control_dim > & | sol1, |
const ct::core::StateFeedbackController< state_dim, control_dim > & | sol2 | ||
) |
NLOptConSolver<state_dim, control_dim> generateSolver | ( | ContinuousOptConProblem< state_dim, control_dim > | ocp | ) |
References ct::optcon::NLOptConSettings::computeK(), ct::optcon::NLOptConSettings::discretization, ct::optcon::NLOptConSettings::dt, ct::optcon::NLOptConSettings::integrator, ct::optcon::NLOptConSettings::lineSearchSettings, ct::optcon::NLOptConSettings::lqoc_solver_settings, ct::optcon::NLOptConSettings::lqocp_solver, ct::optcon::NLOptConSettings::max_iterations, ct::optcon::NLOptConSettings::nlocp_algorithm, ct::optcon::NLOptConSettings::nThreads, ct::optcon::LQOCSolverSettings::num_lqoc_iterations, ct::optcon::NLOptConSettings::printSummary, ct::optcon::NLOptConSolver< STATE_DIM, CONTROL_DIM, P_DIM, V_DIM, SCALAR, CONTINUOUS >::setInitialGuess(), timeHorizon, and ct::optcon::LineSearchSettings::type.
Referenced by TEST().
ContinuousOptConProblem<state_dim, control_dim> generateUnconstrainedOCP | ( | ) |
References linearizer(), oscillatorDynamics(), timeHorizon, verbose, and x0.
Referenced by TEST().
TEST | ( | Constrained_NLOC_Test | , |
comparePureControlConstraints | |||
) |
References compareSolutions(), control_dim, generateSolver(), generateUnconstrainedOCP(), and verbose.
TEST | ( | Constrained_NLOC_Test | , |
comparePureStateConstraints | |||
) |
References compareSolutions(), generateSolver(), generateUnconstrainedOCP(), state_dim, and verbose.
int main | ( | int | argc, |
char ** | argv | ||
) |
const bool verbose = false |
Referenced by generateUnconstrainedOCP(), and TEST().
const size_t state_dim = ct::core::SecondOrderSystem::STATE_DIM |
Referenced by compareSolutions(), and TEST().
const size_t control_dim = ct::core::SecondOrderSystem::CONTROL_DIM |
Referenced by compareSolutions(), and TEST().
StateVector<state_dim> x0 = StateVector<state_dim>::Zero() |
Referenced by ct::optcon::OptVectorDms< STATE_DIM, CONTROL_DIM, SCALAR >::changeInitialState(), ct::optcon::NLOCBackendBase< STATE_DIM, CONTROL_DIM, P_DIM, V_DIM, SCALAR, CONTINUOUS >::changeInitialState(), ct::optcon::DmsSolver< STATE_DIM, CONTROL_DIM, SCALAR >::changeInitialState(), ct::optcon::DmsProblem< STATE_DIM, CONTROL_DIM, SCALAR >::DmsProblem(), generateUnconstrainedOCP(), main(), ct::optcon::OptConProblemBase< STATE_DIM, CONTROL_DIM, SCALAR >::OptConProblemBase(), ct::optcon::OptConSolver< DmsSolver< STATE_DIM, CONTROL_DIM, SCALAR >, DmsPolicy< STATE_DIM, CONTROL_DIM, SCALAR >, DmsSettings, STATE_DIM, CONTROL_DIM, SCALAR >::runIteration(), ct::optcon::LQOCProblem< STATE_DIM, CONTROL_DIM, SCALAR >::setFromTimeInvariantLinearQuadraticProblem(), ct::optcon::OptVectorDms< STATE_DIM, CONTROL_DIM, SCALAR >::setInitGuess(), ct::optcon::OptConProblemBase< STATE_DIM, CONTROL_DIM, SCALAR >::setInitialState(), ct::optcon::example::symplecticTest(), ct::optcon::example::TEST(), TEST(), timeSingleSolve(), and ct::optcon::InitStateConstraint< STATE_DIM, CONTROL_DIM, SCALAR >::updateConstraint().
ct::core::Time timeHorizon = 3.0 |
const double w_n = 0.1 |
Referenced by main().
const double zeta = 5.0 |
Referenced by main().
std::string nloc_test_dir = std::string(NLOC_TEST_DIR) |