25 #ifndef CASADI_HIGHS_INTERFACE_HPP
26 #define CASADI_HIGHS_INTERFACE_HPP
28 #include "casadi/core/conic_impl.hpp"
29 #include <casadi/interfaces/highs/casadi_conic_highs_export.h>
32 #include "interfaces/highs_c_api.h"
36 #include "highs_runtime.hpp"
74 const std::map<std::string, Sparsity>& st) {
80 const std::map<std::string, Sparsity>& st);
89 std::string
class_name()
const override {
return "HighsInterface";}
97 void set_highs_prob();
113 void init(
const Dict& opts)
override;
116 void init_dependent();
122 int init_mem(
void* mem)
const override;
125 void free_mem(
void *mem)
const override;
128 void set_work(
void* mem,
const double**& arg,
double**& res,
129 casadi_int*& iw,
double*& w)
const override;
132 Dict get_stats(
void* mem)
const override;
135 int solve(
const double** arg,
double** res,
136 casadi_int* iw,
double* w,
void* mem)
const override;
161 std::vector<int> colinda_, rowa_;
162 std::vector<int> colindh_, rowh_;
163 std::vector<int> integrality_;
Helper class for C code generation.
Helper class for Serialization.
static const std::string meta_doc
A documentation string.
static const Options options_
Options.
const Options & get_options() const override
Options.
std::string codegen_mem_type() const override
Thread-local memory object type.
static Conic * creator(const std::string &name, const std::map< std::string, Sparsity > &st)
Create a new QP Solver.
bool integer_support() const override
Can discrete variables be treated.
void * alloc_mem() const override
Create memory block.
std::string class_name() const override
Readable name of the internal class.
static ProtoFunction * deserialize(DeserializingStream &s)
Deserialize with type disambiguation.
Dict opts_
All HiGHS options.
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.
casadi_highs_data< double > d
Options metadata for a class.