CYCLUS
|
Namespaces | |
namespace | compmath |
namespace | toolkit |
namespace | units |
namespace | version |
Typedefs | |
typedef Agent * | AgentCtor(Context *) |
typedef std::map< Nuc, double > | CompMap |
typedef xmlpp::Node::const_NodeList | const_NodeList |
typedef std::vector< Datum * > | DatumList |
typedef boost::singleton_pool< Datum, sizeof(Datum)> | DatumPool |
typedef std::map< int, std::vector< std::pair< int, double > > > | DaughtersMap |
typedef boost::random::mt19937 | Generator |
typedef std::map< std::string, std::vector< Resource::Ptr > > | Inventories |
typedef std::pair< Arc, double > | Match |
typedef LMatrix | Matrix |
typedef xmlpp::Node::NodeSet | NodeSet |
typedef boost::random::variate_generator< Generator &, boost::random::normal_distribution<> > | NormalDist |
typedef int | Nuc |
typedef std::vector< int > | NucList |
typedef std::map< int, std::pair< int, double > > | ParentMap |
typedef std::set< std::string >::iterator | PrototypeIterator |
typedef std::set< std::string > | PrototypeSet |
typedef std::vector< boost::spirit::hold_any > | QueryRow |
typedef std::string | ResourceType |
typedef std::vector< std::string > | StrList |
typedef LMatrix | Vector |
Variables | |
double | cy_eps = 1e-6 |
double | cy_eps_rsrc = 1e-6 |
static const double | CY_LARGE_DOUBLE = 1e299 |
static const int | CY_LARGE_INT = 2147483647 |
static const double | CY_NEAR_ZERO = 1e-08 |
static const double | float_ulp_eq = 2 |
static unsigned int const | kDefaultDumpCount = 10000 |
static const double | kDefaultPref = 1 |
static const double | kModifierLimit = pow(10, 10) |
int | PY_INTERP_COUNT = 0 |
bool | PY_INTERP_INIT = false |
static std::map< const std::type_info *, DbTypes, compare > | type_map |
bool | warn_as_error = false |
std::map< Warnings, unsigned int > | warn_count |
unsigned int | warn_limit = 42 |
std::map< Warnings, std::string > | warn_prefix = warn_prefixes() |
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
a collection of tools that are standard-library like
Thanks to John Forrest for his assistance! Some small changes have been made to the original file.
Definition at line 17 of file dynamic_module.h.
typedef std::map<Nuc, double> cyclus::CompMap |
a raw definition of nuclides and corresponding (dimensionless quantities).
Definition at line 17 of file composition.h.
typedef xmlpp::Node::const_NodeList cyclus::const_NodeList |
Definition at line 18 of file infile_tree.cc.
typedef std::vector< Datum * > cyclus::DatumList |
Definition at line 12 of file rec_backend.h.
typedef boost::singleton_pool<Datum, sizeof(Datum)> cyclus::DatumPool |
typedef std::map<int, std::vector<std::pair<int, double> > > cyclus::DaughtersMap |
A map type to represent all of the daughter nuclides tracked.
The key for this map type is the decay matrix column associated with the parent, and the value is a vector of pairs of all the daughters for that parent. Each of the daughters are represented by a pair that contains the daughter's Nuc number and its branching ratio.
typedef boost::random::mt19937 cyclus::Generator |
Definition at line 16 of file random_number_generator.h.
typedef std::map<std::string, std::vector<Resource::Ptr> > cyclus::Inventories |
typedef std::pair<Arc, double> cyclus::Match |
Definition at line 197 of file exchange_graph.h.
Definition at line 17 of file use_matrix_lib.h.
typedef xmlpp::Node::NodeSet cyclus::NodeSet |
Definition at line 17 of file infile_tree.cc.
typedef boost::random::variate_generator<Generator&, boost::random::normal_distribution<> > cyclus::NormalDist |
Definition at line 17 of file random_number_generator.h.
Definition at line 14 of file composition.h.
typedef std::vector<int> cyclus::NucList |
typedef std::map< int, std::pair<int, double> > cyclus::ParentMap |
typedef std::set<std::string>::iterator cyclus::PrototypeIterator |
Definition at line 18 of file institution.h.
typedef std::set<std::string> cyclus::PrototypeSet |
Definition at line 17 of file institution.h.
typedef std::vector<boost::spirit::hold_any> cyclus::QueryRow |
Definition at line 423 of file query_backend.h.
typedef std::string cyclus::ResourceType |
Definition at line 17 of file resource.h.
typedef std::vector<std::string> cyclus::StrList |
Definition at line 15 of file sqlite_db.h.
Definition at line 22 of file use_matrix_lib.h.
Represents operation codes for condition checking.
Enumerator | |
---|---|
LT | |
GT | |
LE | |
GE | |
EQ | |
NE |
Definition at line 375 of file query_backend.h.
This is the primary list of all supported database types.
All types must have a constant length unless they begin with the prefix VL_, which stands for "variable length" or are implicitly variable length, such as blob. Changing the order here may invalidate previously created databases. Thus only append to this enum if it is post-1.0.
Definition at line 31 of file query_backend.h.
categorical (verbosity) levels for log statements.
|
inline |
Definition at line 82 of file trader_management.h.
|
inline |
Definition at line 89 of file trader_management.h.
|
inlinestatic |
Definition at line 75 of file trader_management.h.
|
inline |
Adds a bid-node mapping.
Definition at line 141 of file exchange_translator.h.
|
inline |
Adds a request-node mapping.
Definition at line 133 of file exchange_translator.h.
Definition at line 23 of file resource_exchange.h.
Definition at line 26 of file resource_exchange.h.
Preference adjustment method helpers to convert from templates to the Agent inheritance hierarchy.
Definition at line 22 of file resource_exchange.h.
Definition at line 29 of file resource_exchange.h.
Definition at line 32 of file resource_exchange.h.
returns true if two doubles are within eps() of one another
Definition at line 29 of file cyc_limits.h.
double cyclus::AvgPref | ( | ExchangeNode::Ptr | n | ) |
Definition at line 21 of file greedy_preconditioner.cc.
|
inline |
A comparison function for sorting a container of Nodes by the nodes preference in decensing order (i.e., most preferred Node first).
In the case of a tie, a lexicalgraphic ordering of node ids is used.
Definition at line 40 of file greedy_solver.h.
Trade< T > cyclus::BackTranslateMatch | ( | const ExchangeTranslationContext< T > & | translation_ctx, |
const Match & | match ) |
simple translation from a Match to a Trade, given internal state
Definition at line 263 of file exchange_translator.h.
std::string cyclus::BuildFlatMasterSchema | ( | std::string | schema_path, |
std::string | infile ) |
Builds and returns a master cyclus input xml schema defining a flat prototype and instance structure that includes the sub-schemas defined by all installed cyclus modules (e.g.
facility agents). This is used to validate simulation input files.
Definition at line 14 of file xml_flat_loader.cc.
std::string cyclus::BuildMasterSchema | ( | std::string | schema_path, |
std::string | infile, | ||
std::string | format = "none" ) |
Builds and returns a master cyclus input xml schema that includes the sub-schemas defined by all installed cyclus modules (e.g.
facility agents). This is used to validate simulation input files.
Definition at line 90 of file xml_file_loader.cc.
void cyclus::Capacity | ( | boost::shared_ptr< cyclus::ExchangeNode > | , |
cyclus::Arc const & | , | ||
double | ) |
Definition at line 16 of file greedy_solver.cc.
void cyclus::Capacity | ( | cyclus::Arc const & | , |
double | , | ||
double | ) |
Definition at line 15 of file greedy_solver.cc.
this is taken exactly from driver4.cpp in the Cbc examples
Definition at line 14 of file solver_factory.cc.
Removes all Python agents from the internal cache.
There is usually no need for a user to call this.
Definition at line 83 of file pyhooks.cc.
Compares a condiontion for a single value.
Definition at line 589 of file query_backend.h.
Compares all condiontions for a value.
Definition at line 622 of file query_backend.h.
Definition at line 21 of file coin_helpers.cc.
std::set< std::string > cyclus::DiscoverArchetypes | ( | const std::string | s | ) |
This function returns a vector of archetype names in a given string that is the binary represnetation of a module/shared-object/library.
Definition at line 23 of file discovery.cc.
Json::Value cyclus::DiscoverMetadataInCyclusPath | ( | ) |
Discover archetype metadata in cyclus path.
Definition at line 146 of file discovery.cc.
std::set< std::string > cyclus::DiscoverSpecs | ( | std::string | p, |
std::string | lib ) |
Discover archetype specifications for a path and library.
Definition at line 48 of file discovery.cc.
std::set< std::string > cyclus::DiscoverSpecsInCyclusPath | ( | ) |
Discover archetype specifications that live recursively in CYCLUS_PATH directories.
Definition at line 130 of file discovery.cc.
std::set< std::string > cyclus::DiscoverSpecsInDir | ( | std::string | d | ) |
Discover archetype specifications that live recursively in modules in a dir.
Definition at line 80 of file discovery.cc.
|
inline |
a generic epsilon value
Definition at line 12 of file cyc_limits.h.
|
inline |
an epsilon value to be used by resources
Definition at line 19 of file cyc_limits.h.
Definition at line 75 of file pyhooks.cc.
|
static |
queries each supplier for the responses to thier matched trade and populates trades_by_requester_ and all_trades_ with the results
Definition at line 133 of file trade_executor.h.
std::string cyclus::GetTraderPrototype | ( | Trader * | bidder | ) |
Definition at line 10 of file bid_portfolio.cc.
std::string cyclus::GetTraderSpec | ( | Trader * | bidder | ) |
Definition at line 15 of file bid_portfolio.cc.
void cyclus::GroupTradesBySupplier | ( | TradeExecutionContext< T > & | trade_ctx, |
const std::vector< Trade< T > > & | trades ) |
populates suppliers_, requesters_, and trades_by_supplier_
Definition at line 120 of file trade_executor.h.
double cyclus::GroupWeight | ( | RequestGroup::Ptr | g, |
std::map< std::string, double > * | weights, | ||
std::map< ExchangeNode::Ptr, double > * | avg_prefs ) |
Definition at line 118 of file greedy_preconditioner.cc.
bool cyclus::HasInt | ( | OsiSolverInterface * | si | ) |
Definition at line 165 of file solver_factory.cc.
Definition at line 28603 of file hdf5_back.cc.
std::list< boost::uuids::uuid > cyclus::Hdf5Back::VLBufToVal< std::list< boost::uuids::uuid > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::list< cyclus::Blob > cyclus::Hdf5Back::VLBufToVal< std::list< cyclus::Blob > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::list< double > cyclus::Hdf5Back::VLBufToVal< std::list< double > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::list< float > cyclus::Hdf5Back::VLBufToVal< std::list< float > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
Definition at line 28603 of file hdf5_back.cc.
std::list< std::pair< int, int > > cyclus::Hdf5Back::VLBufToVal< std::list< std::pair< int, int > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::list< std::string > cyclus::Hdf5Back::VLBufToVal< std::list< std::string > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, bool > cyclus::Hdf5Back::VLBufToVal< std::map< int, bool > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, boost::uuids::uuid > cyclus::Hdf5Back::VLBufToVal< std::map< int, boost::uuids::uuid > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, cyclus::Blob > cyclus::Hdf5Back::VLBufToVal< std::map< int, cyclus::Blob > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, double > cyclus::Hdf5Back::VLBufToVal< std::map< int, double > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, float > cyclus::Hdf5Back::VLBufToVal< std::map< int, float > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, int > cyclus::Hdf5Back::VLBufToVal< std::map< int, int > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, std::map< std::string, double > > cyclus::Hdf5Back::VLBufToVal< std::map< int, std::map< std::string, double > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< int, std::string > cyclus::Hdf5Back::VLBufToVal< std::map< int, std::string > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::pair< int, std::string >, double > cyclus::Hdf5Back::VLBufToVal< std::map< std::pair< int, std::string >, double > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::pair< std::string, std::string >, int > cyclus::Hdf5Back::VLBufToVal< std::map< std::pair< std::string, std::string >, int > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, bool > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, bool > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, boost::uuids::uuid > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, boost::uuids::uuid > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, cyclus::Blob > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, cyclus::Blob > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, double > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, double > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, float > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, float > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, int > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, int > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::map< int, double > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::map< int, double > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::map< std::string, double > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::map< std::string, double > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::map< std::string, int > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::map< std::string, int > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::pair< double, std::map< int, double > > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::pair< double, std::map< int, double > > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::pair< std::string, std::vector< double > > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::pair< std::string, std::vector< double > > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::string > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::string > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::vector< double > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::vector< double > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::map< std::string, std::vector< std::pair< int, std::pair< std::string, std::string > > > > cyclus::Hdf5Back::VLBufToVal< std::map< std::string, std::vector< std::pair< int, std::pair< std::string, std::string > > > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::set< boost::uuids::uuid > cyclus::Hdf5Back::VLBufToVal< std::set< boost::uuids::uuid > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::set< cyclus::Blob > cyclus::Hdf5Back::VLBufToVal< std::set< cyclus::Blob > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::set< double > cyclus::Hdf5Back::VLBufToVal< std::set< double > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
Definition at line 28603 of file hdf5_back.cc.
Definition at line 28603 of file hdf5_back.cc.
std::set< std::string > cyclus::Hdf5Back::VLBufToVal< std::set< std::string > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< boost::uuids::uuid > cyclus::Hdf5Back::VLBufToVal< std::vector< boost::uuids::uuid > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< cyclus::Blob > cyclus::Hdf5Back::VLBufToVal< std::vector< cyclus::Blob > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< double > cyclus::Hdf5Back::VLBufToVal< std::vector< double > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< float > cyclus::Hdf5Back::VLBufToVal< std::vector< float > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< int > cyclus::Hdf5Back::VLBufToVal< std::vector< int > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< std::pair< int, std::pair< std::string, std::string > > > cyclus::Hdf5Back::VLBufToVal< std::vector< std::pair< int, std::pair< std::string, std::string > > > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
std::vector< std::string > cyclus::Hdf5Back::VLBufToVal< std::vector< std::string > > | ( | const hvl_t & | buf | ) |
Definition at line 28603 of file hdf5_back.cc.
Definition at line 100 of file hdf5_back.cc.
Definition at line 15259 of file hdf5_back.cc.
Definition at line 284 of file l_matrix.cc.
void cyclus::InitAgent | ( | Agent * | a, |
std::stringstream & | config, | ||
Recorder * | rec, | ||
SqliteBack * | back ) |
Definition at line 12 of file mock_sim.cc.
Initializes a Python agent fron another agent.
Definition at line 81 of file pyhooks.cc.
returns true if a double is less than 0 - eps()
Definition at line 24 of file cyc_limits.h.
void cyclus::LoadRawStringstreamFromFile | ( | std::stringstream & | stream, |
std::string | file ) |
Reads the given file path into the passed stream without modification.
Definition at line 30 of file xml_file_loader.cc.
std::string cyclus::LoadStringFromFile | ( | std::string | file, |
std::string | format = "none" ) |
Reads the given file path and returns an XML string.
The format may be "none", "xml", "json", or "py".
Definition at line 57 of file xml_file_loader.cc.
void cyclus::LoadStringstreamFromFile | ( | std::stringstream & | stream, |
std::string | file, | ||
std::string | format = "none" ) |
Reads the given file path as XML into the passed stream.
The format may be "none", "xml", "json", or "py".
Definition at line 40 of file xml_file_loader.cc.
Finds a Python module and returns an agent pointer from it.
Definition at line 79 of file pyhooks.cc.
std::string cyclus::ModuleConstructor | ( | std::string | module_spec | ) |
Material::Ptr cyclus::NewBlankMaterial | ( | double | qty | ) |
Creates and returns a new material with the specified quantity and a default, meaningless composition.
This is intended only for testing purposes.
Definition at line 277 of file material.cc.
double cyclus::NodeWeight | ( | ExchangeNode::Ptr | n, |
std::map< std::string, double > * | weights, | ||
double | avg_pref ) |
Definition at line 133 of file greedy_preconditioner.cc.
Definition at line 251 of file l_matrix.cc.
Definition at line 226 of file l_matrix.cc.
Definition at line 234 of file l_matrix.cc.
Definition at line 210 of file l_matrix.cc.
Definition at line 218 of file l_matrix.cc.
|
inline |
CapacityConstraint-CapacityConstraint comparison operator, allows usage in ordered containers.
Definition at line 133 of file capacity_constraint.h.
|
inline |
CapacityConstraint-CapacityConstraint equality operator.
Definition at line 124 of file capacity_constraint.h.
bool cyclus::operator== | ( | const cyclus::Trade< T > & | lhs, |
const cyclus::Trade< T > & | rhs ) |
|
inline |
ExchangeNode-ExchangeNode equality operator.
Definition at line 49 of file exchange_graph.cc.
Definition at line 269 of file l_matrix.cc.
|
inline |
Definition at line 142 of file infile_tree.h.
|
inline |
Definition at line 167 of file infile_tree.h.
|
inline |
Definition at line 155 of file infile_tree.h.
|
inline |
Definition at line 130 of file infile_tree.h.
|
inline |
a query method for optional parameters
tree | the infile tree to use |
query | the query to be made |
default_val | the default value to use |
Definition at line 121 of file infile_tree.h.
std::vector< AgentSpec > cyclus::ParseSpecs | ( | std::string | infile, |
std::string | format ) |
Returns a list of the full module+agent spec for all agents in the given input file.
Definition at line 63 of file xml_file_loader.cc.
|
inlinestatic |
Definition at line 50 of file trader_management.h.
|
inline |
Definition at line 59 of file trader_management.h.
|
inline |
Definition at line 67 of file trader_management.h.
Removes a single Python agent from the reference cache.
Definition at line 85 of file pyhooks.cc.
std::string cyclus::PyFindModule | ( | std::string | lib | ) |
Finds a Python module and returns its filename.
Definition at line 77 of file pyhooks.cc.
Initialize Python functionality, this is a no-op if Python was not installed along with Cyclus.
This may be called many times and safely initializes the Python interpreter only once.
Definition at line 71 of file pyhooks.cc.
Closes the current Python session.
This is a no-op if Python was not installed with Cyclus. This may safely be called many times.
Definition at line 73 of file pyhooks.cc.
|
inline |
Definition at line 89 of file infile_tree.h.
|
inline |
Definition at line 94 of file infile_tree.h.
|
inline |
Definition at line 101 of file infile_tree.h.
|
inline |
Definition at line 108 of file infile_tree.h.
|
inline |
a query method for required parameters
tree | the infile tree to use |
query | the query to be made |
index | the index of the queried element |
Definition at line 84 of file infile_tree.h.
|
inlinestatic |
Definition at line 33 of file trader_management.h.
|
inline |
Definition at line 33 of file trader_management.h.
|
inline |
Definition at line 33 of file trader_management.h.
|
inlinestatic |
Definition at line 15 of file trader_management.h.
|
inline |
Definition at line 15 of file trader_management.h.
|
inline |
Definition at line 15 of file trader_management.h.
Composition::Ptr cyclus::ReadRecipe | ( | InfileTree * | qe | ) |
Creates a composition from the recipe in the query engine.
Definition at line 129 of file xml_file_loader.cc.
void cyclus::Report | ( | OsiSolverInterface * | iface | ) |
Definition at line 12 of file prog_solver.cc.
void cyclus::ReportProg | ( | OsiSolverInterface * | si | ) |
Definition at line 94 of file solver_factory.cc.
double Capacity(const Arc& a, double u_curr_qty, double v_curr_qty) { return 0; }
A comparison function for sorting a container of Arcs by the requester's (unode's) preference, in decensing order (i.e., most preferred Arc first). In the case of a tie, a lexicalgraphic ordering of node ids is used.
Definition at line 27 of file greedy_solver.h.
T::Ptr cyclus::ResCast | ( | Resource::Ptr | r | ) |
Casts a Resource::Ptr into a pointer of a specific resource type T.
Definition at line 134 of file resource.h.
std::vector< typename T::Ptr > cyclus::ResCast | ( | std::vector< Resource::Ptr > | rs | ) |
Casts a vector of Resources into a vector of a specific resource type T.
Definition at line 124 of file resource.h.
std::string cyclus::SanitizeSpec | ( | std::string | module_spec | ) |
|
static |
Definition at line 160 of file trade_executor.h.
void cyclus::SolveProg | ( | OsiSolverInterface * | si | ) |
Definition at line 153 of file solver_factory.cc.
Definition at line 157 of file solver_factory.cc.
Definition at line 161 of file solver_factory.cc.
Definition at line 122 of file solver_factory.cc.
Definition at line 28 of file sqlite_back.cc.
Definition at line 17 of file greedy_preconditioner.cc.
accumulator sum for request quantities
Definition at line 23 of file request_portfolio.h.
Arc cyclus::TranslateArc | ( | const ExchangeTranslationContext< T > & | translation_ctx, |
Bid< T > * | bid ) |
translates an arc given a bid and subsequent data, and also updates the unit capacities for the associated nodes on the arc
Definition at line 235 of file exchange_translator.h.
Arc cyclus::TranslateArc | ( | const ExchangeTranslationContext< T > & | translation_ctx, |
Bid< T > * | bid, | ||
double | pref ) |
Definition at line 241 of file exchange_translator.h.
ExchangeNodeGroup::Ptr cyclus::TranslateBidPortfolio | ( | ExchangeTranslationContext< T > & | translation_ctx, |
const typename BidPortfolio< T >::Ptr | bp ) |
translates a bid portfolio by adding bid nodes and accounting for capacities.
Bid unit capcities must be added when arcs are known
Definition at line 187 of file exchange_translator.h.
void cyclus::TranslateCapacities | ( | typename T::Ptr | offer, |
const typename std::set< CapacityConstraint< T > > & | constr, | ||
ExchangeNode::Ptr | n, | ||
const Arc & | a, | ||
const ExchangeTranslationContext< T > & | ctx ) |
updates a node's unit capacities given, a target resource and constraints
Definition at line 279 of file exchange_translator.h.
RequestGroup::Ptr cyclus::TranslateRequestPortfolio | ( | ExchangeTranslationContext< T > & | translation_ctx, |
const typename RequestPortfolio< T >::Ptr | rp ) |
translates a request portfolio by adding request nodes and accounting for capacities.
Request unit capcities must be added when arcs are known
Definition at line 151 of file exchange_translator.h.
std::map< Warnings, std::string > cyclus::warn_prefixes | ( | ) |
generic epsilon values
Definition at line 17 of file context.cc.
epsilon values to be used by resources
Definition at line 18 of file context.cc.
maximum (+) value for a linear variable
Definition at line 44 of file cyc_limits.h.
maximum (+) value for an integer variable
Definition at line 41 of file cyc_limits.h.
constant near-zero value
Definition at line 47 of file cyc_limits.h.
distance in ULP within which floating point numbers should be considered equal.
Definition at line 35 of file cyc_limits.h.
default number of Datum objects to collect before flushing to backends.
Definition at line 21 of file recorder.h.
maximum value for a function modifier (i.e., a_i for variable x_i)
Definition at line 38 of file cyc_limits.h.
int cyclus::PY_INTERP_COUNT = 0 |
Because of NumPy #7595, we can only initialize & finalize the Python interpreter once.
This variable keeps a count of how many times we have initialized so that we can know when to really stop the interpreter. When Python binding are not installed, this will always remain zero.
Definition at line 68 of file pyhooks.cc.
Whether or not the Python interpreter has been initilized.
Definition at line 69 of file pyhooks.cc.
Definition at line 503 of file sqlite_back.cc.
The number of warnings issues for each kind.
std::map< Warnings, std::string > cyclus::warn_prefix = warn_prefixes() |