List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Friends
casadi::Variable Struct Reference

Holds expressions and meta-data corresponding to a physical quantity evolving in time. More...

#include <dae_builder_internal.hpp>

Detailed Description

Date
2012-2021
Author
Joel Andersson

Extra doc: https://github.com/casadi/casadi/wiki/L_t

Definition at line 68 of file dae_builder_internal.hpp.

Public Member Functions

double attribute (Attribute a) const
 Get by attribute name. More...
 
void set_attribute (Attribute a, double val)
 Set by attribute name. More...
 
std::string string_attribute (Attribute a) const
 Get by attribute name (string-valued) More...
 
void set_string_attribute (Attribute a, const std::string &val)
 Set by attribute name (string-valued) More...
 
XmlNode export_xml (const DaeBuilderInternal &self) const
 
bool is_real () const
 
bool has_start () const
 

Static Public Member Functions

static Initial default_initial (Causality causality, Variability variability)
 

Public Attributes

casadi_int index
 Location in variable vector. More...
 
casadi_int numel
 Number of elements - product of all dimensions. More...
 
std::vector< casadi_int > dimension
 Dimensions. More...
 
casadi_int alg
 
casadi_int der
 
std::vector< double > value
 Numerical value (also for booleans, integers, enums) More...
 
std::string stringvalue
 String value (if string-valued) More...
 
bool dependency
 Do other expressions depend on this variable. More...
 
std::vector< casadi_int > dependencies
 Dependencies. More...
 
std::vector< DependenciesKinddependenciesKind
 Dependencies. More...
 
MX v
 Variable expression. More...
 
MX beq
 Binding equation. More...
 
std::string name
 
unsigned int value_reference
 
std::string description
 
Type type
 
Causality causality
 
Variability variability
 
std::string unit
 
std::string display_unit
 
Initial initial
 
double min
 
double max
 
double nominal
 
std::vector< double > start
 
casadi_int der_of
 

Friends

class DaeBuilderInternal
 

Member Function Documentation

◆ attribute()

double casadi::Variable::attribute ( Attribute  a) const

◆ default_initial()

static Initial casadi::Variable::default_initial ( Causality  causality,
Variability  variability 
)
static

◆ export_xml()

XmlNode casadi::Variable::export_xml ( const DaeBuilderInternal self) const

◆ has_start()

bool casadi::Variable::has_start ( ) const

◆ is_real()

bool casadi::Variable::is_real ( ) const
inline

Definition at line 158 of file dae_builder_internal.hpp.

◆ set_attribute()

void casadi::Variable::set_attribute ( Attribute  a,
double  val 
)

◆ set_string_attribute()

void casadi::Variable::set_string_attribute ( Attribute  a,
const std::string &  val 
)

◆ string_attribute()

std::string casadi::Variable::string_attribute ( Attribute  a) const

Friends And Related Function Documentation

◆ DaeBuilderInternal

friend class DaeBuilderInternal
friend

Definition at line 69 of file dae_builder_internal.hpp.

Member Data Documentation

◆ alg

casadi_int casadi::Variable::alg

Definition at line 113 of file dae_builder_internal.hpp.

◆ beq

MX casadi::Variable::beq

Definition at line 137 of file dae_builder_internal.hpp.

◆ causality

Causality casadi::Variable::causality

Attributes common to all types of variables, cf. Table 17 in FMI specification

Definition at line 91 of file dae_builder_internal.hpp.

◆ dependencies

std::vector<casadi_int> casadi::Variable::dependencies
mutable

Definition at line 128 of file dae_builder_internal.hpp.

◆ dependenciesKind

std::vector<DependenciesKind> casadi::Variable::dependenciesKind
mutable

Definition at line 131 of file dae_builder_internal.hpp.

◆ dependency

bool casadi::Variable::dependency

Definition at line 125 of file dae_builder_internal.hpp.

◆ der

casadi_int casadi::Variable::der

Definition at line 116 of file dae_builder_internal.hpp.

◆ der_of

casadi_int casadi::Variable::der_of

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 108 of file dae_builder_internal.hpp.

◆ description

std::string casadi::Variable::description

Attributes common to all types of variables, cf. Table 17 in FMI specification

Definition at line 89 of file dae_builder_internal.hpp.

◆ dimension

std::vector<casadi_int> casadi::Variable::dimension

Definition at line 83 of file dae_builder_internal.hpp.

◆ display_unit

std::string casadi::Variable::display_unit

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 99 of file dae_builder_internal.hpp.

◆ index

casadi_int casadi::Variable::index

Definition at line 77 of file dae_builder_internal.hpp.

◆ initial

Initial casadi::Variable::initial

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 100 of file dae_builder_internal.hpp.

◆ max

double casadi::Variable::max

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 105 of file dae_builder_internal.hpp.

◆ min

double casadi::Variable::min

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 104 of file dae_builder_internal.hpp.

◆ name

std::string casadi::Variable::name

Attributes common to all types of variables, cf. Table 17 in FMI specification

Definition at line 87 of file dae_builder_internal.hpp.

◆ nominal

double casadi::Variable::nominal

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 106 of file dae_builder_internal.hpp.

◆ numel

casadi_int casadi::Variable::numel

Definition at line 80 of file dae_builder_internal.hpp.

◆ start

std::vector<double> casadi::Variable::start

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 107 of file dae_builder_internal.hpp.

◆ stringvalue

std::string casadi::Variable::stringvalue

Definition at line 122 of file dae_builder_internal.hpp.

◆ type

Type casadi::Variable::type

Attributes common to all types of variables, cf. Table 17 in FMI specification

Definition at line 90 of file dae_builder_internal.hpp.

◆ unit

std::string casadi::Variable::unit

Type specific attributes common to all types, cf. Table FMI 3.0 specification

Definition at line 98 of file dae_builder_internal.hpp.

◆ v

MX casadi::Variable::v

Definition at line 134 of file dae_builder_internal.hpp.

◆ value

std::vector<double> casadi::Variable::value

Definition at line 119 of file dae_builder_internal.hpp.

◆ value_reference

unsigned int casadi::Variable::value_reference

Attributes common to all types of variables, cf. Table 17 in FMI specification

Definition at line 88 of file dae_builder_internal.hpp.

◆ variability

Variability casadi::Variable::variability

Attributes common to all types of variables, cf. Table 17 in FMI specification

Definition at line 92 of file dae_builder_internal.hpp.


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