26 #ifndef CASADI_GUROBI_INTERFACE_HPP
27 #define CASADI_GUROBI_INTERFACE_HPP
29 #include "casadi/core/conic_impl.hpp"
30 #include <casadi/interfaces/gurobi/casadi_conic_gurobi_export.h>
82 const std::map<std::string, Sparsity>& st);
86 const std::map<std::string, Sparsity>& st) {
97 std::string
class_name()
const override {
return "GurobiInterface";}
106 void init(
const Dict& opts)
override;
112 int init_mem(
void* mem)
const override;
118 int solve(
const double** arg,
double** res,
119 casadi_int* iw,
double* w,
void* mem)
const override;
131 Dict get_stats(
void* mem)
const override;
Helper class for Serialization.
'gurobi' plugin for Conic
bool psd_support() const override
Can psd constraints be treated.
std::vector< int > sos_ind_
const Options & get_options() const override
Options.
static Conic * creator(const std::string &name, const std::map< std::string, Sparsity > &st)
Create a new QP Solver.
std::vector< int > sos_types_
void * alloc_mem() const override
Create memory block.
std::vector< int > sos_beg_
std::vector< char > vtype_
void free_mem(void *mem) const override
Free memory block.
bool integer_support() const override
Can discrete variables be treated.
const char * plugin_name() const override
Dict opts_
Gurobi options.
std::string class_name() const override
Readable name of the internal class.
static ProtoFunction * deserialize(DeserializingStream &s)
Deserialize with type disambiguation.
SDPToSOCPMem sdp_to_socp_mem_
SDP to SOCP conversion memory.
static const std::string meta_doc
A documentation string.
static const Options options_
Options.
std::vector< double > sos_weights_
Base class for FunctionInternal and LinsolInternal.
Helper class for Serialization.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
SDP to SOCP conversion memory.
std::vector< std::vector< double > > pool_solutions
std::vector< double > sos_weights
std::vector< int > sos_beg
std::vector< int > sos_types
std::vector< double > pool_obj_vals
std::vector< int > sos_ind
Options metadata for a class.