1#ifndef CYCLUS_SRC_TOOLKIT_COMMODITY_PRODUCER_H_
2#define CYCLUS_SRC_TOOLKIT_COMMODITY_PRODUCER_H_
33 return commodities_.find(commodity) != commodities_.end();
39 return commodities_[commodity].capacity;
45 return commodities_[commodity].cost;
52 commodities_[commodity].capacity = capacity;
59 commodities_[commodity].cost = cost;
73 commodities_.insert(std::make_pair(commodity,
info));
79 commodities_.erase(commodity);
91 std::map<Commodity, CommodInfo, CommodityCompare> commodities_;
94 double default_capacity_;
The abstract base class used by all types of agents that live and interact in a simulation.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
static const double kModifierLimit
maximum value for a function modifier (i.e., a_i for variable x_i)
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters