17 #ifndef ACADOS_SOLVER_BASE__ACADOS_SOLVER_UTILS_HPP_
18 #define ACADOS_SOLVER_BASE__ACADOS_SOLVER_UTILS_HPP_
20 #include <Eigen/Dense>
25 #include "acados_c/ocp_nlp_interface.h"
54 template<
typename Derived>
58 const std::string & field,
59 Eigen::EigenBase<Derived> & value);
133 template<
typename Derived>
137 const std::string & field,
138 Eigen::EigenBase<Derived> & value);
Abstract C++ wrapper of generated Acados solver C-code.
Definition: acados_solver.hpp:42
double get_stats_cost_value(AcadosSolver &solver)
Retrieve the current cost value.
bool set_const_g_max(AcadosSolver &solver, unsigned int stage, Eigen::VectorXd &g_max)
Set the upper bound g_max used by polytopic constraints.
bool set_cost_field(AcadosSolver &solver, unsigned int stage, const std::string &field, Eigen::EigenBase< Derived > &value)
Generic setter for the cost.
bool set_const_D(AcadosSolver &solver, unsigned int stage, Eigen::MatrixXd &D)
Set the D matrix used by polytopic constraints.
bool set_cost_W(AcadosSolver &solver, unsigned int stage, Eigen::MatrixXd &W)
Set the W cost matrix used for 'LINEAR_LS' cost.
bool set_cost_Vu(AcadosSolver &solver, unsigned int stage, Eigen::MatrixXd &Vu)
Set the Vu matrix used for 'LINEAR_LS' cost.
bool set_cost_y_ref(AcadosSolver &solver, unsigned int stage, Eigen::VectorXd &y_ref)
Set the y_ref vector for a given stage.
int get_stats_sqp_iter(AcadosSolver &solver)
Retrieve the SQP iteration at the last solve() call.
void unsafe_get_stats_field(AcadosSolver &solver, const std::string &field, T &value)
Read a given field from the solver stats (solve must be called before...)
bool set_const_h_min(AcadosSolver &solver, unsigned int stage, Eigen::VectorXd &h_min)
Set the lower bound h_min used by non-linear constraints.
bool set_cost_Vz(AcadosSolver &solver, unsigned int stage, Eigen::MatrixXd &Vz)
Set the Vz matrix used for 'LINEAR_LS' cost.
bool set_const_C(AcadosSolver &solver, unsigned int stage, Eigen::MatrixXd &C)
Set the C matrix used by polytopic constraints.
bool set_cost_Vx(AcadosSolver &solver, unsigned int stage, Eigen::MatrixXd &Vx)
Set the Vx matrix used for 'LINEAR_LS' cost.
bool set_const_h_max(AcadosSolver &solver, unsigned int stage, Eigen::VectorXd &h_max)
Set the upper bound h_max used by non-linear constraints.
bool set_const_g_min(AcadosSolver &solver, unsigned int stage, Eigen::VectorXd &g_min)
Set the lower bound g_min used by polytopic constraints.
double get_stats_cpu_time(AcadosSolver &solver)
Retrieve the CPU time needed for the last solve() call.
bool set_constraint_field(AcadosSolver &solver, unsigned int stage, const std::string &field, Eigen::EigenBase< Derived > &value)
Generic setter for the constraints.
Definition: acados_solver.hpp:35