CYCAMORE
|
Public Member Functions | |
setup_class (cls) | |
teardown_class (cls) | |
test_deployment (self) | |
Public Member Functions inherited from test_regression.TestRegression | |
find_ids (cls, spec, a, spec_col="Spec", id_col="AgentId") | |
to_ary (cls, a, k) | |
Additional Inherited Members | |
Public Attributes inherited from test_regression.TestRegression | |
agent_entry | |
agent_exit | |
compositions | |
conn | |
cur | |
enrichments | |
ext | |
inf | |
info | |
outf | |
resources | |
rsrc_qtys | |
transactions | |
This class tests the growth.xml Tests GrowthRegion, ManagerInst, and Source over a 4-time step simulation. A linear growth demand (y = x + 2) is provided to the growth region. Two Sources are allowed in the ManagerInst, with capacities of 2 and 1.1, respectively. At t=1, a 2-capacity Source is expected to be built, and at t=2 and t=3, 1-capacity Sources are expected to be built. A linear growth demand (y = 0x + 3) for a second commodity is provided at t=2 to test the demand for multiple commodities.
Definition at line 367 of file test_regression.py.
test_regression.TestGrowth1.setup_class | ( | cls | ) |
Reimplemented from test_regression.TestRegression.
Definition at line 382 of file test_regression.py.
References test_regression.TestGrowth1.setup_class(), and test_regression.skip_if_dont_allow_milps().
Referenced by test_regression.TestGrowth1.setup_class().
test_regression.TestGrowth1.teardown_class | ( | cls | ) |
Reimplemented from test_regression.TestRegression.
Definition at line 387 of file test_regression.py.
References test_regression.TestGrowth1.teardown_class().
Referenced by test_regression.TestGrowth1.teardown_class().
test_regression.TestGrowth1.test_deployment | ( | self | ) |
Definition at line 390 of file test_regression.py.
References test_regression.TestRegression.agent_entry, test_regression.TestRegression.find_ids(), and test_regression.TestRegression.to_ary().