CYCAMORE
|
Public Member Functions | |
setup_class (cls) | |
teardown_class (cls) | |
test_sink_deployment (self) | |
test_source_deployment (self) | |
test_xaction_general (self) | |
test_xaction_specific (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) | |
Public Attributes | |
agent_ids | |
agent_impl | |
depl_time | |
exit_ids | |
exit_time | |
quantities | |
receiver_ids | |
resource_ids | |
sender_ids | |
sink_id | |
source_id | |
trans_resource | |
trans_time | |
Public Attributes inherited from test_regression.TestRegression | |
agent_entry | |
agent_exit | |
compositions | |
conn | |
cur | |
enrichments | |
ext | |
inf | |
info | |
outf | |
resources | |
rsrc_qtys | |
transactions | |
Tests dynamic capacity restraints involving changes in the number of source and sink facilities. A source facility is expected to offer a commodity of amount 1, and a sink facility is expected to request for a commodity of amount 1. Therefore, number of facilities correspond to the amounts of offers and requests. At time step 1, 3 source facilities and 2 sink facilities are deployed, and at time step 2, additional 2 sink facilities are deployed. After time step 2, the older 2 sink facilities are decommissioned. According to this deployment schedule, at time step 1, only 2 transactions are expected, the number of sink facilities being the constraint; whereas, at time step 2, only 3 transactions are expected, the number of source facilities being the constraint. At time step 3, after decommissioning 2 older sink facilities, the remaining number of sink facilities becomes the constraint, resulting in the same transaction amount as in time step 1.
Definition at line 259 of file test_regression.py.
test_regression.TestDynamicCapacitated.setup_class | ( | cls | ) |
Reimplemented from test_regression.TestRegression.
Definition at line 279 of file test_regression.py.
References test_regression.TestDynamicCapacitated.setup_class(), and test_regression.skip_if_dont_allow_milps().
Referenced by test_regression.TestDynamicCapacitated.setup_class().
test_regression.TestDynamicCapacitated.teardown_class | ( | cls | ) |
Reimplemented from test_regression.TestRegression.
Definition at line 303 of file test_regression.py.
References test_regression.TestDynamicCapacitated.teardown_class().
Referenced by test_regression.TestDynamicCapacitated.teardown_class().
test_regression.TestDynamicCapacitated.test_sink_deployment | ( | self | ) |
Definition at line 313 of file test_regression.py.
References test_regression.TestDynamicCapacitated.agent_ids, test_regression.TestDynamicCapacitated.depl_time, test_regression.TestDynamicCapacitated.exit_ids, test_regression.TestDynamicCapacitated.exit_time, and test_regression.TestDynamicCapacitated.sink_id.
test_regression.TestDynamicCapacitated.test_source_deployment | ( | self | ) |
Definition at line 306 of file test_regression.py.
References test_regression.TestDynamicCapacitated.agent_ids, test_regression.TestDynamicCapacitated.depl_time, and test_regression.TestDynamicCapacitated.source_id.
test_regression.TestDynamicCapacitated.test_xaction_general | ( | self | ) |
Definition at line 327 of file test_regression.py.
References test_regression.TestDynamicCapacitated.receiver_ids, test_regression.TestDynamicCapacitated.sender_ids, test_regression.TestDynamicCapacitated.sink_id, test_regression.TestDynamicCapacitated.source_id, and test_regression.TestDynamicCapacitated.trans_time.
test_regression.TestDynamicCapacitated.test_xaction_specific | ( | self | ) |
test_regression.TestDynamicCapacitated.agent_ids |
Definition at line 284 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_sink_deployment(), and test_regression.TestDynamicCapacitated.test_source_deployment().
test_regression.TestDynamicCapacitated.agent_impl |
Definition at line 285 of file test_regression.py.
test_regression.TestDynamicCapacitated.depl_time |
Definition at line 286 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_sink_deployment(), and test_regression.TestDynamicCapacitated.test_source_deployment().
test_regression.TestDynamicCapacitated.exit_ids |
Definition at line 288 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_sink_deployment().
test_regression.TestDynamicCapacitated.exit_time |
Definition at line 287 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_sink_deployment().
test_regression.TestDynamicCapacitated.quantities |
Definition at line 300 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_xaction_specific().
test_regression.TestDynamicCapacitated.receiver_ids |
Definition at line 294 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_xaction_general().
test_regression.TestDynamicCapacitated.resource_ids |
Definition at line 299 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_xaction_specific().
test_regression.TestDynamicCapacitated.sender_ids |
Definition at line 293 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_xaction_general().
test_regression.TestDynamicCapacitated.sink_id |
Definition at line 290 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_sink_deployment(), and test_regression.TestDynamicCapacitated.test_xaction_general().
test_regression.TestDynamicCapacitated.source_id |
Definition at line 289 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_source_deployment(), and test_regression.TestDynamicCapacitated.test_xaction_general().
test_regression.TestDynamicCapacitated.trans_resource |
Definition at line 296 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_xaction_specific().
test_regression.TestDynamicCapacitated.trans_time |
Definition at line 295 of file test_regression.py.
Referenced by test_regression.TestDynamicCapacitated.test_xaction_general(), and test_regression.TestDynamicCapacitated.test_xaction_specific().