Scenario/get_subscenario
Get subscenario from a
Scenarioinstance
Description
Get subscenario of scenario over time slots ini, ini+1, \(\dots\) , fin-1.
If
future_evs == true, the subscenario is composed of the EVs satisfyingArr_time < finandDep_time > ini, i.e., the EVs connected to chargers at some time slot amongini,ini+1, \(\dots\) ,fin-1.If
future_evs == false, the subscenario is composed of the EVs satisfyingARr_time <= iniandDep_time < ini, i.e., the EVs connected to chargers at time slotini.If the name-value argument
E_iniis provided, then for eachi,EVs(i).E_iniis set toE_ini(i).The output
ev_indis a row vector containing the indices of EVs inscenariothat form the subscenario.
Syntax
[subscenario,~] = get_subscenario(scenario,Name=Value)
[subscenario,ev_ind] = get_subscenario(scenario,Name=Value)
Input Arguments
Name |
Type |
Description |
|---|---|---|
|
Scenario object |
Scenario object |
Name-Value Arguments
Name |
Type |
Description |
|---|---|---|
|
1 (default) | positive integer |
Initial time slot of a subscenario |
|
|
Final time slot of a subscenario |
|
true (default) | logical |
Discard future EVs (EVs with |
|
1×N_ev array |
Set |
Output Arguments
Name |
Type |
Description |
|---|---|---|
|
Scenario object |
Obtained subscenario |
|
row vector |
Row vector of indices of EVs in |