26 #ifndef CASADI_OSQP_INTERFACE_HPP
27 #define CASADI_OSQP_INTERFACE_HPP
29 #include "casadi/core/conic_impl.hpp"
30 #include <casadi/interfaces/osqp/casadi_conic_osqp_export.h>
70 const std::map<std::string, Sparsity>& st);
74 const std::map<std::string, Sparsity>& st) {
85 std::string
class_name()
const override {
return "OsqpInterface";}
94 void init(
const Dict& opts)
override;
100 int init_mem(
void* mem)
const override;
106 int solve(
const double** arg,
double** res,
107 casadi_int* iw,
double* w,
void* mem)
const override;
119 Dict get_stats(
void* mem)
const override;
Helper class for C code generation.
Helper class for Serialization.
bool psd_support() const override
Can psd constraints be treated.
bool integer_support() const override
Can discrete variables be treated.
const Options & get_options() const override
const Options
static ProtoFunction * deserialize(DeserializingStream &s)
Deserialize with type disambiguation.
static Conic * creator(const std::string &name, const std::map< std::string, Sparsity > &st)
Create a new QP Solver.
void free_mem(void *mem) const override
Free memory block.
std::string codegen_mem_type() const override
Thread-local memory object type.
static const std::string meta_doc
A documentation string.
std::string class_name() const override
Readable name of the internal class.
static const Options options_
const Options
void * alloc_mem() const override
Create memory block.
const char * plugin_name() const override
Base class for FunctionInternal and LinsolInternal.
Helper class for Serialization.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
Options metadata for a class.