List of all members | Public Member Functions | Public Attributes
casadi::SundialsMemory Struct Reference

#include <sundials_interface.hpp>

Detailed Description

Definition at line 43 of file sundials_interface.hpp.

Inheritance diagram for casadi::SundialsMemory:
Inheritance graph
[legend]
Collaboration diagram for casadi::SundialsMemory:
Collaboration graph
[legend]

Public Member Functions

 SundialsMemory ()
 Constructor. More...
 
 ~SundialsMemory ()
 Destructor. More...
 
void add_stat (const std::string &s)
 

Public Attributes

N_Vector v_xz
 
N_Vector v_xzdot
 
N_Vector v_q
 
N_Vector v_adj_xz
 
N_Vector v_adj_xzdot
 
N_Vector v_adj_pu
 
bool first_callB
 
double * jac_ode_x
 Jacobian memory blocks. More...
 
double * jac_alg_x
 
double * jac_ode_z
 
double * jac_alg_z
 
double * jacF
 
long nsteps
 Stats, forward integration. More...
 
long nfevals
 
long nlinsetups
 
long netfails
 
int qlast
 
int qcur
 
double hinused
 
double hlast
 
double hcur
 
double tcur
 
long nniters
 
long nncfails
 
long nstepsB
 Stats, backward integration. More...
 
long nfevalsB
 
long nlinsetupsB
 
long netfailsB
 
int qlastB
 
int qcurB
 
double hinusedB
 
double hlastB
 
double hcurB
 
double tcurB
 
long nnitersB
 
long nncfailsB
 
long nstepsB_off
 Offsets for stats in backward integration. More...
 
long nfevalsB_off
 
long nlinsetupsB_off
 
long netfailsB_off
 
long nnitersB_off
 
long nncfailsB_off
 
int ncheck
 number of checkpoints stored so far More...
 
N_Vector abstolv
 
int mem_linsolF
 Linear solver memory objects. More...
 
double * q
 
double * x
 
double * z
 
double * p
 
double * u
 
double * e
 
double * edot
 
double * old_e
 
double * xdot
 
double * zdot
 
double * adj_x
 
double * adj_z
 
double * adj_p
 
double * adj_q
 
double * tmp1
 
double * tmp2
 
casadi_int k
 
double t
 
double t_next
 
double t_stop
 
double t_start
 
double t_next_out
 
double t_step
 
casadi_int * event_triggered
 
bool reset_solver
 
casadi_int event_iter
 
casadi_int num_events
 
casadi_int event_index
 
const double ** arg
 
double ** res
 
casadi_int * iw
 
double * w
 
casadi_oracle_data< double > d_oracle
 
std::vector< LocalOracleMemory * > thread_local_mem
 
bool stats_available
 
std::map< std::string, FStatsfstats
 
FStatst_total
 

Constructor & Destructor Documentation

◆ SundialsMemory()

casadi::SundialsMemory::SundialsMemory ( )

Definition at line 412 of file sundials_interface.cpp.

412  {
413  this->v_xz = nullptr;
414  this->v_q = nullptr;
415  this->v_adj_xz = nullptr;
416  this->v_adj_pu = nullptr;
417  this->first_callB = true;
418  this->abstolv = nullptr;
419  this->mem_linsolF = -1;
420 }
int mem_linsolF
Linear solver memory objects.

References abstolv, first_callB, mem_linsolF, v_adj_pu, v_adj_xz, v_q, and v_xz.

◆ ~SundialsMemory()

casadi::SundialsMemory::~SundialsMemory ( )

Definition at line 422 of file sundials_interface.cpp.

422  {
423  if (this->v_xz) N_VDestroy_Serial(this->v_xz);
424  if (this->v_q) N_VDestroy_Serial(this->v_q);
425  if (this->v_adj_xz) N_VDestroy_Serial(this->v_adj_xz);
426  if (this->v_adj_pu) N_VDestroy_Serial(this->v_adj_pu);
427  if (this->abstolv) N_VDestroy_Serial(this->abstolv);
428 }

References abstolv, v_adj_pu, v_adj_xz, v_q, and v_xz.

Member Function Documentation

◆ add_stat()

void casadi::ProtoFunctionMemory::add_stat ( const std::string &  s)
inlineinherited

Member Data Documentation

◆ abstolv

N_Vector casadi::SundialsMemory::abstolv

Definition at line 79 of file sundials_interface.hpp.

Referenced by SundialsMemory(), and ~SundialsMemory().

◆ adj_p

double * casadi::IntegratorMemory::adj_p
inherited

Definition at line 45 of file integrator_impl.hpp.

◆ adj_q

double * casadi::IntegratorMemory::adj_q
inherited

◆ adj_x

double* casadi::IntegratorMemory::adj_x
inherited

Definition at line 45 of file integrator_impl.hpp.

◆ adj_z

double * casadi::IntegratorMemory::adj_z
inherited

Definition at line 45 of file integrator_impl.hpp.

◆ arg

const double** casadi::OracleMemory::arg
inherited

Definition at line 63 of file oracle_function.hpp.

Referenced by casadi::accepted_iterate(), casadi::KinsolInterface::bjac(), casadi::SundialsInterface::calc_daeB(), casadi::SundialsInterface::calc_daeF(), casadi::Integrator::calc_edot(), casadi::SundialsInterface::calc_jacF(), casadi::SundialsInterface::calc_jtimesF(), casadi::SundialsInterface::calc_quadB(), casadi::SundialsInterface::calc_quadF(), casadi::Nlpsol::callback(), casadi::casadi_func_cons_jac(), casadi::casadi_func_cons_val(), casadi::casadi_func_hess_prod(), casadi::casadi_func_obj_grad(), casadi::casadi_func_obj_val(), casadi::KinsolInterface::djac(), casadi::Scpgen::eval_exp(), casadi::AlpaqaProblem::eval_f(), casadi::BonminUserClass::eval_f(), casadi::IpoptUserClass::eval_f(), casadi::AlpaqaProblem::eval_f_grad_f(), casadi::AlpaqaProblem::eval_g(), casadi::BonminUserClass::eval_g(), casadi::IpoptUserClass::eval_g(), casadi::BonminUserClass::eval_grad_f(), casadi::IpoptUserClass::eval_grad_f(), casadi::AlpaqaProblem::eval_grad_L(), casadi::BonminUserClass::eval_h(), casadi::IpoptUserClass::eval_h(), casadi::AlpaqaProblem::eval_hess_L(), casadi::AlpaqaProblem::eval_hess_L_prod(), casadi::AlpaqaProblem::eval_hess_ψ(), casadi::AlpaqaProblem::eval_hess_ψ_prod(), casadi::AlpaqaProblem::eval_jac_g(), casadi::BonminUserClass::eval_jac_g(), casadi::IpoptUserClass::eval_jac_g(), casadi::Scpgen::eval_mat(), casadi::Scpgen::eval_res(), casadi::Scpgen::eval_vec(), casadi::AlpaqaProblem::eval_ψ(), casadi::AlpaqaProblem::eval_ψ_grad_ψ(), casadi::Blocksqp::evaluate(), casadi::KinsolInterface::func(), casadi::BonminInterface::intermediate_callback(), casadi::IpoptInterface::intermediate_callback(), casadi::KinsolInterface::jtimes(), casadi::KinsolInterface::psetup(), casadi::OracleFunction::set_temp(), casadi::Sqpmethod::solve_ela_QP(), casadi::Feasiblesqpmethod::solve_LP(), casadi::Feasiblesqpmethod::solve_QP(), casadi::Qrsqp::solve_QP(), casadi::Scpgen::solve_qp(), casadi::Sqpmethod::solve_QP(), casadi::FixedStepIntegrator::stepB(), casadi::FixedStepIntegrator::stepF(), casadi::Integrator::trigger_event(), and casadi::SnoptInterface::userfun().

◆ d_oracle

casadi_oracle_data<double> casadi::OracleMemory::d_oracle
inherited

Definition at line 68 of file oracle_function.hpp.

◆ e

double * casadi::IntegratorMemory::e
inherited

◆ edot

double * casadi::IntegratorMemory::edot
inherited

◆ event_index

casadi_int casadi::IntegratorMemory::event_index
inherited

Definition at line 71 of file integrator_impl.hpp.

Referenced by casadi::Integrator::advance().

◆ event_iter

casadi_int casadi::IntegratorMemory::event_iter
inherited

Definition at line 67 of file integrator_impl.hpp.

Referenced by casadi::Integrator::advance().

◆ event_triggered

casadi_int* casadi::IntegratorMemory::event_triggered
inherited

◆ first_callB

bool casadi::SundialsMemory::first_callB

Definition at line 51 of file sundials_interface.hpp.

Referenced by SundialsMemory().

◆ fstats

std::map<std::string, FStats> casadi::ProtoFunctionMemory::fstats
inherited

◆ hcur

double casadi::SundialsMemory::hcur

Definition at line 62 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ hcurB

double casadi::SundialsMemory::hcurB

Definition at line 68 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ hinused

double casadi::SundialsMemory::hinused

Definition at line 62 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ hinusedB

double casadi::SundialsMemory::hinusedB

Definition at line 68 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ hlast

double casadi::SundialsMemory::hlast

Definition at line 62 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ hlastB

double casadi::SundialsMemory::hlastB

Definition at line 68 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ iw

casadi_int* casadi::OracleMemory::iw
inherited

◆ jac_alg_x

double * casadi::SundialsMemory::jac_alg_x

Definition at line 54 of file sundials_interface.hpp.

◆ jac_alg_z

double * casadi::SundialsMemory::jac_alg_z

Definition at line 54 of file sundials_interface.hpp.

◆ jac_ode_x

double* casadi::SundialsMemory::jac_ode_x

Definition at line 54 of file sundials_interface.hpp.

◆ jac_ode_z

double * casadi::SundialsMemory::jac_ode_z

Definition at line 54 of file sundials_interface.hpp.

◆ jacF

double* casadi::SundialsMemory::jacF

Definition at line 57 of file sundials_interface.hpp.

Referenced by casadi::IdasInterface::solve_transposed().

◆ k

casadi_int casadi::IntegratorMemory::k
inherited

Definition at line 49 of file integrator_impl.hpp.

Referenced by casadi::Integrator::trigger_event().

◆ mem_linsolF

int casadi::SundialsMemory::mem_linsolF

◆ ncheck

int casadi::SundialsMemory::ncheck

◆ netfails

long casadi::SundialsMemory::netfails

Definition at line 60 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ netfailsB

long casadi::SundialsMemory::netfailsB

◆ netfailsB_off

long casadi::SundialsMemory::netfailsB_off

◆ nfevals

long casadi::SundialsMemory::nfevals

Definition at line 60 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ nfevalsB

long casadi::SundialsMemory::nfevalsB

◆ nfevalsB_off

long casadi::SundialsMemory::nfevalsB_off

◆ nlinsetups

long casadi::SundialsMemory::nlinsetups

Definition at line 60 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ nlinsetupsB

long casadi::SundialsMemory::nlinsetupsB

◆ nlinsetupsB_off

long casadi::SundialsMemory::nlinsetupsB_off

◆ nncfails

long casadi::SundialsMemory::nncfails

Definition at line 63 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ nncfailsB

long casadi::SundialsMemory::nncfailsB

◆ nncfailsB_off

long casadi::SundialsMemory::nncfailsB_off

◆ nniters

long casadi::SundialsMemory::nniters

Definition at line 63 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ nnitersB

long casadi::SundialsMemory::nnitersB

◆ nnitersB_off

long casadi::SundialsMemory::nnitersB_off

◆ nsteps

long casadi::SundialsMemory::nsteps

Definition at line 60 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ nstepsB

long casadi::SundialsMemory::nstepsB

◆ nstepsB_off

long casadi::SundialsMemory::nstepsB_off

◆ num_events

casadi_int casadi::IntegratorMemory::num_events
inherited

Definition at line 69 of file integrator_impl.hpp.

Referenced by casadi::Integrator::trigger_event().

◆ old_e

double * casadi::IntegratorMemory::old_e
inherited

◆ p

double * casadi::IntegratorMemory::p
inherited

◆ q

double* casadi::IntegratorMemory::q
inherited

Definition at line 43 of file integrator_impl.hpp.

Referenced by casadi::Integrator::get_q(), and casadi::Integrator::set_q().

◆ qcur

int casadi::SundialsMemory::qcur

Definition at line 61 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ qcurB

int casadi::SundialsMemory::qcurB

Definition at line 67 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ qlast

int casadi::SundialsMemory::qlast

◆ qlastB

int casadi::SundialsMemory::qlastB

Definition at line 67 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ res

double** casadi::OracleMemory::res
inherited

Definition at line 64 of file oracle_function.hpp.

Referenced by casadi::accepted_iterate(), casadi::KinsolInterface::bjac(), casadi::SundialsInterface::calc_daeB(), casadi::SundialsInterface::calc_daeF(), casadi::Integrator::calc_edot(), casadi::SundialsInterface::calc_jacF(), casadi::SundialsInterface::calc_jtimesF(), casadi::SundialsInterface::calc_quadB(), casadi::SundialsInterface::calc_quadF(), casadi::Nlpsol::callback(), casadi::casadi_func_cons_jac(), casadi::casadi_func_cons_val(), casadi::casadi_func_hess_prod(), casadi::casadi_func_obj_grad(), casadi::casadi_func_obj_val(), casadi::KinsolInterface::djac(), casadi::Scpgen::eval_exp(), casadi::AlpaqaProblem::eval_f(), casadi::BonminUserClass::eval_f(), casadi::IpoptUserClass::eval_f(), casadi::AlpaqaProblem::eval_f_grad_f(), casadi::AlpaqaProblem::eval_g(), casadi::BonminUserClass::eval_g(), casadi::IpoptUserClass::eval_g(), casadi::BonminUserClass::eval_grad_f(), casadi::IpoptUserClass::eval_grad_f(), casadi::AlpaqaProblem::eval_grad_L(), casadi::BonminUserClass::eval_h(), casadi::IpoptUserClass::eval_h(), casadi::AlpaqaProblem::eval_hess_L(), casadi::AlpaqaProblem::eval_hess_L_prod(), casadi::AlpaqaProblem::eval_hess_ψ(), casadi::AlpaqaProblem::eval_hess_ψ_prod(), casadi::AlpaqaProblem::eval_jac_g(), casadi::BonminUserClass::eval_jac_g(), casadi::IpoptUserClass::eval_jac_g(), casadi::Scpgen::eval_mat(), casadi::Scpgen::eval_res(), casadi::Scpgen::eval_vec(), casadi::AlpaqaProblem::eval_ψ(), casadi::AlpaqaProblem::eval_ψ_grad_ψ(), casadi::Blocksqp::evaluate(), casadi::KinsolInterface::func(), casadi::BonminInterface::intermediate_callback(), casadi::IpoptInterface::intermediate_callback(), casadi::KinsolInterface::jtimes(), casadi::KinsolInterface::psetup(), casadi::Sqpmethod::solve_ela_QP(), casadi::Feasiblesqpmethod::solve_LP(), casadi::Feasiblesqpmethod::solve_QP(), casadi::Qrsqp::solve_QP(), casadi::Scpgen::solve_qp(), casadi::Sqpmethod::solve_QP(), casadi::FixedStepIntegrator::stepB(), casadi::FixedStepIntegrator::stepF(), casadi::Integrator::trigger_event(), and casadi::SnoptInterface::userfun().

◆ reset_solver

bool casadi::IntegratorMemory::reset_solver
inherited

Definition at line 65 of file integrator_impl.hpp.

◆ stats_available

bool casadi::FunctionMemory::stats_available
inherited

◆ t

double casadi::IntegratorMemory::t
inherited

◆ t_next

double casadi::IntegratorMemory::t_next
inherited

◆ t_next_out

double casadi::IntegratorMemory::t_next_out
inherited

Definition at line 59 of file integrator_impl.hpp.

Referenced by casadi::Integrator::advance().

◆ t_start

double casadi::IntegratorMemory::t_start
inherited

Definition at line 57 of file integrator_impl.hpp.

Referenced by casadi::Integrator::advance().

◆ t_step

double casadi::IntegratorMemory::t_step
inherited

Definition at line 61 of file integrator_impl.hpp.

Referenced by casadi::Integrator::advance().

◆ t_stop

double casadi::IntegratorMemory::t_stop
inherited

◆ t_total

FStats* casadi::ProtoFunctionMemory::t_total
inherited

Definition at line 71 of file function_internal.hpp.

Referenced by casadi::LinsolCall< Tr >::eval(), and casadi::Linsol::solve().

◆ tcur

double casadi::SundialsMemory::tcur

Definition at line 62 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ tcurB

double casadi::SundialsMemory::tcurB

Definition at line 68 of file sundials_interface.hpp.

Referenced by casadi::SundialsInterface::reset_stats().

◆ thread_local_mem

std::vector<LocalOracleMemory*> casadi::OracleMemory::thread_local_mem
inherited

◆ tmp1

double* casadi::IntegratorMemory::tmp1
inherited

◆ tmp2

double * casadi::IntegratorMemory::tmp2
inherited

◆ u

double * casadi::IntegratorMemory::u
inherited

◆ v_adj_pu

N_Vector casadi::SundialsMemory::v_adj_pu

Definition at line 48 of file sundials_interface.hpp.

Referenced by SundialsMemory(), and ~SundialsMemory().

◆ v_adj_xz

N_Vector casadi::SundialsMemory::v_adj_xz

◆ v_adj_xzdot

N_Vector casadi::SundialsMemory::v_adj_xzdot

◆ v_q

N_Vector casadi::SundialsMemory::v_q

Definition at line 45 of file sundials_interface.hpp.

Referenced by SundialsMemory(), and ~SundialsMemory().

◆ v_xz

N_Vector casadi::SundialsMemory::v_xz

◆ v_xzdot

N_Vector casadi::SundialsMemory::v_xzdot

◆ w

double* casadi::OracleMemory::w
inherited

◆ x

double * casadi::IntegratorMemory::x
inherited

◆ xdot

double * casadi::IntegratorMemory::xdot
inherited

◆ z

double * casadi::IntegratorMemory::z
inherited

◆ zdot

double * casadi::IntegratorMemory::zdot
inherited

Definition at line 43 of file integrator_impl.hpp.


The documentation for this struct was generated from the following files: