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

Collects global CasADi options. More...

#include <global_options.hpp>

Detailed Description

Note to developers:

Definition at line 48 of file global_options.hpp.

Static Public Member Functions

static void setSimplificationOnTheFly (bool flag)
 
static bool getSimplificationOnTheFly ()
 
static void setHierarchicalSparsity (bool flag)
 
static bool getHierarchicalSparsity ()
 
static void setCasadiPath (const std::string &path)
 
static std::string getCasadiPath ()
 
static void setCasadiIncludePath (const std::string &path)
 
static std::string getCasadiIncludePath ()
 
static void setMaxNumDir (casadi_int ndir)
 
static casadi_int getMaxNumDir ()
 
static void setCopyElisionMinSize (casadi_int sz)
 
static casadi_int getCopyElisionMinSize ()
 

Static Public Attributes

static bool simplification_on_the_fly = true
 Indicates whether simplifications should be made on the fly. More...
 
static std::string casadipath
 
static std::string casadi_include_path
 
static bool hierarchical_sparsity = true
 
static casadi_int max_num_dir = 64
 
static casadi_int start_index = 0
 
static bool julia_initialized = false
 
static casadi_int copy_elision_min_size = 8
 

Member Function Documentation

◆ getCasadiIncludePath()

static std::string casadi::GlobalOptions::getCasadiIncludePath ( )
inlinestatic

Definition at line 90 of file global_options.hpp.

90 { return casadi_include_path; }
static std::string casadi_include_path

◆ getCasadiPath()

static std::string casadi::GlobalOptions::getCasadiPath ( )
inlinestatic

Definition at line 87 of file global_options.hpp.

87 { return casadipath; }
static std::string casadipath

Referenced by casadi::get_search_paths().

◆ getCopyElisionMinSize()

static casadi_int casadi::GlobalOptions::getCopyElisionMinSize ( )
inlinestatic

Definition at line 101 of file global_options.hpp.

101 { return copy_elision_min_size; }
static casadi_int copy_elision_min_size

◆ getHierarchicalSparsity()

static bool casadi::GlobalOptions::getHierarchicalSparsity ( )
inlinestatic

Definition at line 84 of file global_options.hpp.

84 { return hierarchical_sparsity; }
static bool hierarchical_sparsity

◆ getMaxNumDir()

static casadi_int casadi::GlobalOptions::getMaxNumDir ( )
inlinestatic

Definition at line 93 of file global_options.hpp.

93 { return max_num_dir; }
static casadi_int max_num_dir

Referenced by casadi::FunctionInternal::FunctionInternal().

◆ getSimplificationOnTheFly()

static bool casadi::GlobalOptions::getSimplificationOnTheFly ( )
inlinestatic

Definition at line 80 of file global_options.hpp.

80 { return simplification_on_the_fly; }
static bool simplification_on_the_fly
Indicates whether simplifications should be made on the fly.

◆ setCasadiIncludePath()

static void casadi::GlobalOptions::setCasadiIncludePath ( const std::string &  path)
inlinestatic

Definition at line 89 of file global_options.hpp.

std::vector< casadi_int > path(const std::vector< casadi_int > &map, casadi_int i_start)

References casadi::path().

◆ setCasadiPath()

static void casadi::GlobalOptions::setCasadiPath ( const std::string &  path)
inlinestatic

Definition at line 86 of file global_options.hpp.

86 { casadipath = path; }

References casadi::path().

◆ setCopyElisionMinSize()

static void casadi::GlobalOptions::setCopyElisionMinSize ( casadi_int  sz)
inlinestatic

Definition at line 95 of file global_options.hpp.

95  {
99  }
100  }

◆ setHierarchicalSparsity()

static void casadi::GlobalOptions::setHierarchicalSparsity ( bool  flag)
inlinestatic

Definition at line 83 of file global_options.hpp.

83 { hierarchical_sparsity = flag; }

◆ setMaxNumDir()

static void casadi::GlobalOptions::setMaxNumDir ( casadi_int  ndir)
inlinestatic

Definition at line 92 of file global_options.hpp.

92 { max_num_dir=ndir; }

◆ setSimplificationOnTheFly()

static void casadi::GlobalOptions::setSimplificationOnTheFly ( bool  flag)
inlinestatic

Definition at line 79 of file global_options.hpp.

79 { simplification_on_the_fly = flag; }

Member Data Documentation

◆ casadi_include_path

std::string casadi::GlobalOptions::casadi_include_path
static

Definition at line 65 of file global_options.hpp.

◆ casadipath

std::string casadi::GlobalOptions::casadipath
static

Definition at line 63 of file global_options.hpp.

◆ copy_elision_min_size

casadi_int casadi::GlobalOptions::copy_elision_min_size = 8
static

◆ hierarchical_sparsity

bool casadi::GlobalOptions::hierarchical_sparsity = true
static

Definition at line 67 of file global_options.hpp.

Referenced by casadi::FunctionInternal::get_jac_sparsity().

◆ julia_initialized

bool casadi::GlobalOptions::julia_initialized = false
static

Definition at line 73 of file global_options.hpp.

Referenced by casadi::MadnlpInterface::init().

◆ max_num_dir

casadi_int casadi::GlobalOptions::max_num_dir = 64
static

Definition at line 69 of file global_options.hpp.

◆ simplification_on_the_fly

bool casadi::GlobalOptions::simplification_on_the_fly = true
static

◆ start_index

casadi_int casadi::GlobalOptions::start_index = 0
static

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