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

#include <idas_interface.hpp>

Detailed Description

Definition at line 57 of file idas_interface.hpp.

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

Public Member Functions

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

Public Attributes

const IdasInterfaceself
 Function object. More...
 
void * mem
 Idas memory block. More...
 
int whichB
 Ids of backward problem. More...
 
double cj_last
 cj used in the last factorization More...
 
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

◆ IdasMemory()

casadi::IdasMemory::IdasMemory ( const IdasInterface s)

Definition at line 1010 of file idas_interface.cpp.

1010  : self(s) {
1011  this->mem = nullptr;
1012  this->v_xzdot = nullptr;
1013  this->v_adj_xzdot = nullptr;
1014  this->cj_last = nan;
1015 
1016  // Reset checkpoints counter
1017  this->ncheck = 0;
1018 }
const double nan
Not a number.
Definition: calculus.hpp:53
void * mem
Idas memory block.
double cj_last
cj used in the last factorization
int ncheck
number of checkpoints stored so far

References cj_last, mem, casadi::nan, casadi::SundialsMemory::ncheck, casadi::SundialsMemory::v_adj_xzdot, and casadi::SundialsMemory::v_xzdot.

◆ ~IdasMemory()

casadi::IdasMemory::~IdasMemory ( )

Definition at line 1020 of file idas_interface.cpp.

1020  {
1021  if (this->mem) IDAFree(&this->mem);
1022  if (this->v_xzdot) N_VDestroy_Serial(this->v_xzdot);
1023  if (this->v_adj_xzdot) N_VDestroy_Serial(this->v_adj_xzdot);
1024  if (this->mem_linsolF >= 0) self.linsolF_.release(this->mem_linsolF);
1025 }
int mem_linsolF
Linear solver memory objects.

References mem, casadi::SundialsMemory::mem_linsolF, casadi::SundialsMemory::v_adj_xzdot, and casadi::SundialsMemory::v_xzdot.

Member Function Documentation

◆ add_stat()

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

Member Data Documentation

◆ abstolv

N_Vector casadi::SundialsMemory::abstolv
inherited

◆ 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().

◆ cj_last

double casadi::IdasMemory::cj_last

Definition at line 68 of file idas_interface.hpp.

Referenced by IdasMemory(), and casadi::IdasInterface::z_impulseB().

◆ 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
inherited

Definition at line 51 of file sundials_interface.hpp.

Referenced by casadi::SundialsMemory::SundialsMemory().

◆ fstats

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

◆ hcur

double casadi::SundialsMemory::hcur
inherited

Definition at line 62 of file sundials_interface.hpp.

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

◆ hcurB

double casadi::SundialsMemory::hcurB
inherited

Definition at line 68 of file sundials_interface.hpp.

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

◆ hinused

double casadi::SundialsMemory::hinused
inherited

Definition at line 62 of file sundials_interface.hpp.

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

◆ hinusedB

double casadi::SundialsMemory::hinusedB
inherited

Definition at line 68 of file sundials_interface.hpp.

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

◆ hlast

double casadi::SundialsMemory::hlast
inherited

Definition at line 62 of file sundials_interface.hpp.

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

◆ hlastB

double casadi::SundialsMemory::hlastB
inherited

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
inherited

Definition at line 54 of file sundials_interface.hpp.

◆ jac_alg_z

double * casadi::SundialsMemory::jac_alg_z
inherited

Definition at line 54 of file sundials_interface.hpp.

◆ jac_ode_x

double* casadi::SundialsMemory::jac_ode_x
inherited

Definition at line 54 of file sundials_interface.hpp.

◆ jac_ode_z

double * casadi::SundialsMemory::jac_ode_z
inherited

Definition at line 54 of file sundials_interface.hpp.

◆ jacF

double* casadi::SundialsMemory::jacF
inherited

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

void* casadi::IdasMemory::mem

Definition at line 62 of file idas_interface.hpp.

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

◆ mem_linsolF

int casadi::SundialsMemory::mem_linsolF
inherited

◆ ncheck

int casadi::SundialsMemory::ncheck
inherited

Definition at line 76 of file sundials_interface.hpp.

Referenced by casadi::CvodesMemory::CvodesMemory(), and IdasMemory().

◆ netfails

long casadi::SundialsMemory::netfails
inherited

Definition at line 60 of file sundials_interface.hpp.

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

◆ netfailsB

long casadi::SundialsMemory::netfailsB
inherited

◆ netfailsB_off

long casadi::SundialsMemory::netfailsB_off
inherited

◆ nfevals

long casadi::SundialsMemory::nfevals
inherited

Definition at line 60 of file sundials_interface.hpp.

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

◆ nfevalsB

long casadi::SundialsMemory::nfevalsB
inherited

◆ nfevalsB_off

long casadi::SundialsMemory::nfevalsB_off
inherited

◆ nlinsetups

long casadi::SundialsMemory::nlinsetups
inherited

Definition at line 60 of file sundials_interface.hpp.

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

◆ nlinsetupsB

long casadi::SundialsMemory::nlinsetupsB
inherited

◆ nlinsetupsB_off

long casadi::SundialsMemory::nlinsetupsB_off
inherited

◆ nncfails

long casadi::SundialsMemory::nncfails
inherited

Definition at line 63 of file sundials_interface.hpp.

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

◆ nncfailsB

long casadi::SundialsMemory::nncfailsB
inherited

◆ nncfailsB_off

long casadi::SundialsMemory::nncfailsB_off
inherited

◆ nniters

long casadi::SundialsMemory::nniters
inherited

Definition at line 63 of file sundials_interface.hpp.

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

◆ nnitersB

long casadi::SundialsMemory::nnitersB
inherited

◆ nnitersB_off

long casadi::SundialsMemory::nnitersB_off
inherited

◆ nsteps

long casadi::SundialsMemory::nsteps
inherited

Definition at line 60 of file sundials_interface.hpp.

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

◆ nstepsB

long casadi::SundialsMemory::nstepsB
inherited

◆ nstepsB_off

long casadi::SundialsMemory::nstepsB_off
inherited

◆ 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
inherited

Definition at line 61 of file sundials_interface.hpp.

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

◆ qcurB

int casadi::SundialsMemory::qcurB
inherited

Definition at line 67 of file sundials_interface.hpp.

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

◆ qlast

int casadi::SundialsMemory::qlast
inherited

◆ qlastB

int casadi::SundialsMemory::qlastB
inherited

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.

◆ self

const IdasInterface& casadi::IdasMemory::self

Definition at line 59 of file idas_interface.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
inherited

Definition at line 62 of file sundials_interface.hpp.

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

◆ tcurB

double casadi::SundialsMemory::tcurB
inherited

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
inherited

◆ v_adj_xz

N_Vector casadi::SundialsMemory::v_adj_xz
inherited

◆ v_adj_xzdot

N_Vector casadi::SundialsMemory::v_adj_xzdot
inherited

Definition at line 48 of file sundials_interface.hpp.

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

◆ v_q

N_Vector casadi::SundialsMemory::v_q
inherited

◆ v_xz

N_Vector casadi::SundialsMemory::v_xz
inherited

◆ v_xzdot

N_Vector casadi::SundialsMemory::v_xzdot
inherited

◆ w

double* casadi::OracleMemory::w
inherited

◆ whichB

int casadi::IdasMemory::whichB

Definition at line 65 of file idas_interface.hpp.

◆ 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: