CYCLUS
Loading...
Searching...
No Matches
supply_demand_manager.cc
Go to the documentation of this file.
2
3#include "error.h"
4
5namespace cyclus {
6namespace toolkit {
7
8// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
10 double value = 0.0;
11 std::set<CommodityProducerManager*>::iterator it;
12 for (it = managers_.begin(); it != managers_.end(); it++) {
13 value += (*it)->TotalCapacity(commodity);
14 }
15 return value;
16}
17
18} // namespace toolkit
19} // namespace cyclus
A simple class defining a commodity; it is currently super simple.
Definition commodity.h:12
double Supply(Commodity &commodity)
Returns the current supply of a commodity.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters