Go to the documentation of this file.
33 using namespace ifopt;
47 std::cout << nlp.
GetOptVariables()->GetValues().transpose() << std::endl;
void AddConstraintSet(ConstraintSet::Ptr constraint_set)
Add a set of multiple constraints to the optimization problem.
A generic optimization problem with variables, costs and constraints.
void AddCostSet(CostTerm::Ptr cost_set)
Add a cost term to the optimization problem.
Example to generate a solver-independent formulation for the problem, taken from the IPOPT cpp_exampl...
void AddVariableSet(VariableSet::Ptr variable_set)
Add one individual set of variables to the optimization problem.
common namespace for all elements in this library.
An interface to SNOPT, fully hiding its implementation.
Composite::Ptr GetOptVariables() const
Read/write access to the current optimization variables.
void PrintCurrent() const
Prints the variables, costs and constraints.
void Solve(Problem &nlp) override
Creates a snoptProblemA from nlp and solves it.
ifopt
Author(s): Alexander W. Winkler
autogenerated on Mon Sep 18 2023 02:14:38