26 #ifndef CASADI_QP_TO_NLP_HPP
27 #define CASADI_QP_TO_NLP_HPP
29 #include "casadi/core/conic_impl.hpp"
30 #include <casadi/solvers/casadi_conic_nlpsol_export.h>
46 struct QpToNlpMemory :
public ConicMemory {
64 class QpToNlp :
public Conic {
67 explicit QpToNlp(
const std::string& name,
68 const std::map<std::string, Sparsity> &st);
71 static Conic* creator(
const std::string& name,
72 const std::map<std::string, Sparsity>& st) {
73 return new QpToNlp(name, st);
80 const char* plugin_name()
const override {
return "nlpsol";}
83 std::string class_name()
const override {
return "QpToNlp";}
86 void* alloc_mem()
const override;
89 void free_mem(
void *mem)
const override;
93 static const Options options_;
94 const Options& get_options()
const override {
return options_;}
98 Dict get_stats(
void* mem)
const override;
101 void init(
const Dict& opts)
override;
103 int solve(
const double** arg,
double** res,
104 casadi_int* iw,
double* w,
void* mem)
const override;
107 static const std::string meta_doc;
112 void serialize_body(SerializingStream &s)
const override;
115 static ProtoFunction* deserialize(DeserializingStream& s) {
return new QpToNlp(s); }
119 explicit QpToNlp(DeserializingStream& s);
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.