CYCAMORE
Loading...
Searching...
No Matches
test_regression.TestDynamicCapacitated Class Reference
Inheritance diagram for test_regression.TestDynamicCapacitated:
test_regression.TestRegression

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
 

Detailed Description

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.

Member Function Documentation

◆ setup_class()

test_regression.TestDynamicCapacitated.setup_class ( cls)

◆ teardown_class()

test_regression.TestDynamicCapacitated.teardown_class ( cls)

◆ test_sink_deployment()

◆ test_source_deployment()

test_regression.TestDynamicCapacitated.test_source_deployment ( self)

◆ test_xaction_general()

◆ test_xaction_specific()

Member Data Documentation

◆ agent_ids

test_regression.TestDynamicCapacitated.agent_ids

◆ agent_impl

test_regression.TestDynamicCapacitated.agent_impl

Definition at line 285 of file test_regression.py.

◆ depl_time

test_regression.TestDynamicCapacitated.depl_time

◆ exit_ids

test_regression.TestDynamicCapacitated.exit_ids

◆ exit_time

test_regression.TestDynamicCapacitated.exit_time

◆ quantities

test_regression.TestDynamicCapacitated.quantities

◆ receiver_ids

test_regression.TestDynamicCapacitated.receiver_ids

◆ resource_ids

test_regression.TestDynamicCapacitated.resource_ids

◆ sender_ids

test_regression.TestDynamicCapacitated.sender_ids

◆ sink_id

test_regression.TestDynamicCapacitated.sink_id

◆ source_id

test_regression.TestDynamicCapacitated.source_id

◆ trans_resource

test_regression.TestDynamicCapacitated.trans_resource

◆ trans_time

test_regression.TestDynamicCapacitated.trans_time

The documentation for this class was generated from the following file: