26 #ifndef CASADI_CONIC_HPP
27 #define CASADI_CONIC_HPP
29 #include "function.hpp"
98 CASADI_EXPORT Function
conic(
const std::string& name,
const std::string& solver,
100 CASADI_EXPORT Function
qpsol(
const std::string& name,
const std::string& solver,
102 CASADI_EXPORT Function
qpsol(
const std::string& name,
const std::string& solver,
109 CASADI_EXPORT std::vector<std::string>
conic_in();
114 CASADI_EXPORT std::vector<std::string>
conic_out();
119 CASADI_EXPORT std::string
conic_in(casadi_int ind);
124 CASADI_EXPORT std::string
conic_out(casadi_int ind);
139 CASADI_EXPORT std::vector<std::string>
conic_options(
const std::string& name);
144 CASADI_EXPORT std::string
conic_option_type(
const std::string& name,
const std::string& op);
149 CASADI_EXPORT std::string
conic_option_info(
const std::string& name,
const std::string& op);
152 CASADI_EXPORT
bool has_conic(
const std::string& name);
155 CASADI_EXPORT
void load_conic(
const std::string& name);
158 CASADI_EXPORT std::string
doc_conic(
const std::string& name);
164 CASADI_EXPORT
void conic_debug(
const Function& f, std::ostream &file);
Function qpsol(const std::string &name, const std::string &solver, const SXDict &qp, const Dict &opts)
std::string conic_option_info(const std::string &name, const std::string &op)
Get documentation for a particular option.
Function conic(const std::string &name, const std::string &solver, const SpDict &qp, const Dict &opts)
std::string conic_option_type(const std::string &name, const std::string &op)
Get type info for a particular option.
bool has_conic(const std::string &name)
Check if a particular plugin is available.
std::string doc_conic(const std::string &name)
Get the documentation string for a plugin.
std::vector< std::string > conic_options(const std::string &name)
Get all options for a plugin.
std::vector< std::string > conic_out()
Get QP solver output scheme of QP solvers.
casadi_int conic_n_in()
Get the number of QP solver inputs.
casadi_int conic_n_out()
Get the number of QP solver outputs.
void load_conic(const std::string &name)
Explicitly load a plugin dynamically.
std::vector< std::string > conic_in()
Get input scheme of QP solvers.
void conic_debug(const Function &f, const std::string &filename)
std::map< std::string, MX > MXDict
ConicInput
Input arguments of a QP problem.
@ CONIC_UBA
dense, (nc x 1)
@ CONIC_A
The matrix A: sparse, (nc x n) - product with x must be dense.
@ CONIC_G
The vector g: dense, (n x 1)
@ CONIC_Q
The matrix Q: sparse symmetric, (np^2 x n)
@ CONIC_LBA
dense, (nc x 1)
@ CONIC_UBX
dense, (n x 1)
@ CONIC_LBX
dense, (n x 1)
@ CONIC_P
The matrix P: sparse symmetric, (np x np)
std::map< std::string, SX > SXDict
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
std::map< std::string, Sparsity > SpDict
std::string filename(const std::string &path)
ConicOutput
Output arguments of an QP Solver.
@ CONIC_X
The primal solution.
@ CONIC_LAM_A
The dual solution corresponding to linear bounds.
@ CONIC_COST
The optimal cost.
@ CONIC_LAM_X
The dual solution corresponding to simple bounds.