26 #ifndef CASADI_CONIC_HPP
27 #define CASADI_CONIC_HPP
29 #include "function.hpp"
348 CASADI_EXPORT Function
conic(
const std::string& name,
const std::string& solver,
350 CASADI_EXPORT Function
qpsol(
const std::string& name,
const std::string& solver,
352 CASADI_EXPORT Function
qpsol(
const std::string& name,
const std::string& solver,
409 CASADI_EXPORT std::vector<std::string>
conic_in();
447 CASADI_EXPORT std::vector<std::string>
conic_out();
477 CASADI_EXPORT std::string
conic_in(casadi_int ind);
506 CASADI_EXPORT std::string
conic_out(casadi_int ind);
590 CASADI_EXPORT std::vector<std::string>
conic_options(
const std::string& name);
621 CASADI_EXPORT std::string
conic_option_type(
const std::string& name,
const std::string& op);
650 CASADI_EXPORT std::string
conic_option_info(
const std::string& name,
const std::string& op);
679 CASADI_EXPORT
bool has_conic(
const std::string& name);
716 CASADI_EXPORT
void load_conic(
const std::string& name);
744 CASADI_EXPORT std::string
doc_conic(
const std::string& name);
801 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 the documentation string of an option of a QP solver plugin.
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 the type of an option of a QP solver plugin.
bool has_conic(const std::string &name)
Check if a QP solver plugin is available.
std::string doc_conic(const std::string &name)
Get the documentation string of a QP solver plugin.
std::vector< std::string > conic_options(const std::string &name)
Get all options of a QP solver plugin.
std::vector< std::string > conic_out()
Get the 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 QP solver plugin.
std::vector< std::string > conic_in()
Get the input scheme of QP solvers.
void conic_debug(const Function &f, const std::string &filename)
Generate native code in the interfaced language for debugging.
std::map< std::string, MX > MXDict
ConicInput
Input arguments of a QP problem.
@ CONIC_UBA
dense, (nc x 1), default +inf
@ CONIC_X0
dense, (n x 1), initial guess, default 0
@ 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), default -inf
@ CONIC_UBX
dense, (n x 1), default +inf
@ CONIC_LAM_A0
dense, (nc x 1), initial guess for the multipliers of the linear constraints, default 0
@ CONIC_LBX
dense, (n x 1), default -inf
@ CONIC_LAM_X0
dense, (n x 1), initial guess for the multipliers of the simple bounds, default 0
@ 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_COST
The optimal cost.
@ CONIC_LAM_X
The dual solution corresponding to simple bounds; same sign convention.