List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions
casadi::ConoptInterface Class Reference

#include <conopt_interface.hpp>

Detailed Description

Definition at line 139 of file conopt_interface.hpp.

Inheritance diagram for casadi::ConoptInterface:
Inheritance graph
[legend]

Public Member Functions

 ConoptInterface (const std::string &name, const Function &nlp)
 
 ~ConoptInterface () override
 
const char * plugin_name () const override
 
std::string class_name () const override
 
const Options & get_options () const override
 
void init (const Dict &opts) override
 
void * alloc_mem () const override
 
int init_mem (void *mem) const override
 
void free_mem (void *mem) const override
 
void set_work (void *mem, const double **&arg, double **&res, casadi_int *&iw, double *&w) const override
 
int solve (void *mem) const override
 
Dict get_stats (void *mem) const override
 
void ensure_row_capacity (ConoptMemory *m, casadi_int remaining_rows) const
 
void serialize_body (SerializingStream &s) const override
 

Static Public Member Functions

static Nlpsol * creator (const std::string &name, const Function &nlp)
 
static ProtoFunction * deserialize (DeserializingStream &s)
 
static int COI_CALLCONV cb_read_matrix (double LOWER[], double CURR[], double UPPER[], int VSTA[], int TYPEX[], double RHS[], int ESTA[], int COLSTA[], int ROWNO[], double VALUE[], int NLFLAG[], int NUMVAR, int NUMCON, int NUMNZ, void *USRMEM)
 
static int COI_CALLCONV cb_fdevalini (const double X[], const int ROWLIST[], int MODE, int LISTSIZE, int NUMTHREAD, int IGNERR, int *ERRCNT, int NUMVAR, void *USRMEM)
 
static int COI_CALLCONV cb_fd_eval (const double X[], double *G, double JAC[], int ROWNO, const int JACNUM[], int MODE, int IGNERR, int *ERRCNT, int NUMVAR, int NUMJAC, int THREAD, void *USRMEM)
 
static int COI_CALLCONV cb_fdevalend (int IGNERR, int *ERRCNT, void *USRMEM)
 
static int COI_CALLCONV cb_status (int MODSTA, int SOLSTA, int ITER, double OBJVAL, void *USRMEM)
 
static int COI_CALLCONV cb_solution (const double XVAL[], const double XMAR[], const int XBAS[], const int XSTA[], const double YVAL[], const double YMAR[], const int YBAS[], const int YSTA[], int NUMVAR, int NUMCON, void *USRMEM)
 
static int COI_CALLCONV cb_message (int SMSG, int DMSG, int NMSG, char *MSGV[], void *USRMEM)
 
static int COI_CALLCONV cb_errmsg (int ROWNO, int COLNO, int POSNO, const char *MSG, void *USRMEM)
 
static int COI_CALLCONV cb_option (int NCALL, double *RVAL, int *IVAL, int *LVAL, char *NAME, void *USRMEM)
 
static int COI_CALLCONV cb_progress (int LEN_INT, const int INTX[], int LEN_RL, const double RL[], const double X[], void *USRMEM)
 
static int COI_CALLCONV cb_2dlagrstr (int HSRW[], int HSCL[], int *NODRV, int NUMVAR, int NUMCON, int NHESS, void *USRMEM)
 
static int COI_CALLCONV cb_2dlagrval (const double X[], const double U[], const int HSRW[], const int HSCL[], double HSVL[], int *NODRV, int NUMVAR, int NUMCON, int NHESS, void *USRMEM)
 

Public Attributes

Sparsity gradf_sp_
 
Sparsity jacg_sp_
 
Sparsity hesslag_sp_
 
bool exact_hessian_
 
bool warm_start_
 
bool debug_
 
Dict opts_
 
std::string optfile_
 
std::vector< bool > gradf_col_flag_
 
std::vector< int > jacg_rowstart_
 
std::vector< int > jacg_nzidx_
 
std::vector< int > jacg_col_
 
std::vector< int > jacg_nlflag_
 
bool has_linear_jac_
 
std::vector< int > gradf_nlflag_
 
bool has_linear_gradf_
 
std::vector< casadi_int > gradf_col_to_nz_
 

Static Public Attributes

static const Options options_
 
static const std::string meta_doc
 A documentation string. More...
 

Protected Member Functions

 ConoptInterface (DeserializingStream &s)
 

Constructor & Destructor Documentation

◆ ConoptInterface() [1/2]

casadi::ConoptInterface::ConoptInterface ( const std::string &  name,
const Function nlp 
)
explicit

◆ ~ConoptInterface()

casadi::ConoptInterface::~ConoptInterface ( )
override

◆ ConoptInterface() [2/2]

casadi::ConoptInterface::ConoptInterface ( DeserializingStream s)
explicitprotected

Member Function Documentation

◆ alloc_mem()

void* casadi::ConoptInterface::alloc_mem ( ) const
inlineoverride

Definition at line 158 of file conopt_interface.hpp.

◆ cb_2dlagrstr()

static int COI_CALLCONV casadi::ConoptInterface::cb_2dlagrstr ( int  HSRW[],
int  HSCL[],
int *  NODRV,
int  NUMVAR,
int  NUMCON,
int  NHESS,
void *  USRMEM 
)
static

◆ cb_2dlagrval()

static int COI_CALLCONV casadi::ConoptInterface::cb_2dlagrval ( const double  X[],
const double  U[],
const int  HSRW[],
const int  HSCL[],
double  HSVL[],
int *  NODRV,
int  NUMVAR,
int  NUMCON,
int  NHESS,
void *  USRMEM 
)
static

◆ cb_errmsg()

static int COI_CALLCONV casadi::ConoptInterface::cb_errmsg ( int  ROWNO,
int  COLNO,
int  POSNO,
const char *  MSG,
void *  USRMEM 
)
static

◆ cb_fd_eval()

static int COI_CALLCONV casadi::ConoptInterface::cb_fd_eval ( const double  X[],
double *  G,
double  JAC[],
int  ROWNO,
const int  JACNUM[],
int  MODE,
int  IGNERR,
int *  ERRCNT,
int  NUMVAR,
int  NUMJAC,
int  THREAD,
void *  USRMEM 
)
static

◆ cb_fdevalend()

static int COI_CALLCONV casadi::ConoptInterface::cb_fdevalend ( int  IGNERR,
int *  ERRCNT,
void *  USRMEM 
)
static

◆ cb_fdevalini()

static int COI_CALLCONV casadi::ConoptInterface::cb_fdevalini ( const double  X[],
const int  ROWLIST[],
int  MODE,
int  LISTSIZE,
int  NUMTHREAD,
int  IGNERR,
int *  ERRCNT,
int  NUMVAR,
void *  USRMEM 
)
static

◆ cb_message()

static int COI_CALLCONV casadi::ConoptInterface::cb_message ( int  SMSG,
int  DMSG,
int  NMSG,
char *  MSGV[],
void *  USRMEM 
)
static

◆ cb_option()

static int COI_CALLCONV casadi::ConoptInterface::cb_option ( int  NCALL,
double *  RVAL,
int *  IVAL,
int *  LVAL,
char *  NAME,
void *  USRMEM 
)
static

◆ cb_progress()

static int COI_CALLCONV casadi::ConoptInterface::cb_progress ( int  LEN_INT,
const int  INTX[],
int  LEN_RL,
const double  RL[],
const double  X[],
void *  USRMEM 
)
static

◆ cb_read_matrix()

static int COI_CALLCONV casadi::ConoptInterface::cb_read_matrix ( double  LOWER[],
double  CURR[],
double  UPPER[],
int  VSTA[],
int  TYPEX[],
double  RHS[],
int  ESTA[],
int  COLSTA[],
int  ROWNO[],
double  VALUE[],
int  NLFLAG[],
int  NUMVAR,
int  NUMCON,
int  NUMNZ,
void *  USRMEM 
)
static

◆ cb_solution()

static int COI_CALLCONV casadi::ConoptInterface::cb_solution ( const double  XVAL[],
const double  XMAR[],
const int  XBAS[],
const int  XSTA[],
const double  YVAL[],
const double  YMAR[],
const int  YBAS[],
const int  YSTA[],
int  NUMVAR,
int  NUMCON,
void *  USRMEM 
)
static

◆ cb_status()

static int COI_CALLCONV casadi::ConoptInterface::cb_status ( int  MODSTA,
int  SOLSTA,
int  ITER,
double  OBJVAL,
void *  USRMEM 
)
static

◆ class_name()

std::string casadi::ConoptInterface::class_name ( ) const
inlineoverride

Definition at line 145 of file conopt_interface.hpp.

◆ creator()

static Nlpsol* casadi::ConoptInterface::creator ( const std::string &  name,
const Function nlp 
)
inlinestatic

Definition at line 147 of file conopt_interface.hpp.

◆ deserialize()

static ProtoFunction* casadi::ConoptInterface::deserialize ( DeserializingStream s)
inlinestatic

Definition at line 200 of file conopt_interface.hpp.

◆ ensure_row_capacity()

void casadi::ConoptInterface::ensure_row_capacity ( ConoptMemory m,
casadi_int  remaining_rows 
) const

◆ free_mem()

void casadi::ConoptInterface::free_mem ( void *  mem) const
override

◆ get_options()

const Options& casadi::ConoptInterface::get_options ( ) const
inlineoverride

Definition at line 152 of file conopt_interface.hpp.

◆ get_stats()

Dict casadi::ConoptInterface::get_stats ( void *  mem) const
override

◆ init()

void casadi::ConoptInterface::init ( const Dict opts)
override

◆ init_mem()

int casadi::ConoptInterface::init_mem ( void *  mem) const
override

◆ plugin_name()

const char* casadi::ConoptInterface::plugin_name ( ) const
inlineoverride

Definition at line 144 of file conopt_interface.hpp.

◆ serialize_body()

void casadi::ConoptInterface::serialize_body ( SerializingStream s) const
override

◆ set_work()

void casadi::ConoptInterface::set_work ( void *  mem,
const double **&  arg,
double **&  res,
casadi_int *&  iw,
double *&  w 
) const
override

◆ solve()

int casadi::ConoptInterface::solve ( void *  mem) const
override

Member Data Documentation

◆ debug_

bool casadi::ConoptInterface::debug_

Definition at line 176 of file conopt_interface.hpp.

◆ exact_hessian_

bool casadi::ConoptInterface::exact_hessian_

Definition at line 174 of file conopt_interface.hpp.

◆ gradf_col_flag_

std::vector<bool> casadi::ConoptInterface::gradf_col_flag_

Definition at line 181 of file conopt_interface.hpp.

◆ gradf_col_to_nz_

std::vector<casadi_int> casadi::ConoptInterface::gradf_col_to_nz_

Definition at line 196 of file conopt_interface.hpp.

◆ gradf_nlflag_

std::vector<int> casadi::ConoptInterface::gradf_nlflag_

Definition at line 193 of file conopt_interface.hpp.

◆ gradf_sp_

Sparsity casadi::ConoptInterface::gradf_sp_

Definition at line 171 of file conopt_interface.hpp.

◆ has_linear_gradf_

bool casadi::ConoptInterface::has_linear_gradf_

Definition at line 194 of file conopt_interface.hpp.

◆ has_linear_jac_

bool casadi::ConoptInterface::has_linear_jac_

Definition at line 190 of file conopt_interface.hpp.

◆ hesslag_sp_

Sparsity casadi::ConoptInterface::hesslag_sp_

Definition at line 173 of file conopt_interface.hpp.

◆ jacg_col_

std::vector<int> casadi::ConoptInterface::jacg_col_

Definition at line 186 of file conopt_interface.hpp.

◆ jacg_nlflag_

std::vector<int> casadi::ConoptInterface::jacg_nlflag_

Definition at line 189 of file conopt_interface.hpp.

◆ jacg_nzidx_

std::vector<int> casadi::ConoptInterface::jacg_nzidx_

Definition at line 185 of file conopt_interface.hpp.

◆ jacg_rowstart_

std::vector<int> casadi::ConoptInterface::jacg_rowstart_

Definition at line 184 of file conopt_interface.hpp.

◆ jacg_sp_

Sparsity casadi::ConoptInterface::jacg_sp_

Definition at line 172 of file conopt_interface.hpp.

◆ meta_doc

const std::string casadi::ConoptInterface::meta_doc
static

Definition at line 155 of file conopt_interface.hpp.

◆ optfile_

std::string casadi::ConoptInterface::optfile_

Definition at line 178 of file conopt_interface.hpp.

◆ options_

const Options casadi::ConoptInterface::options_
static

Definition at line 151 of file conopt_interface.hpp.

◆ opts_

Dict casadi::ConoptInterface::opts_

Definition at line 177 of file conopt_interface.hpp.

◆ warm_start_

bool casadi::ConoptInterface::warm_start_

Definition at line 175 of file conopt_interface.hpp.


The documentation for this class was generated from the following file: