EV
Electric vehicle model
Description
The EV class models an electric vehicle with various properties related to its charging/discharging, energy levels, and scheduling details.
Creation
Syntax
ev = EV()
ev = EV(Name=Value)
Name-Value Arguments
Name |
Type |
Description |
|---|---|---|
|
1 (default) | positive integer |
Charger index |
|
1 (default) | positive integer |
Group index |
|
1 (default) | nonnegative scalar |
Battery degradation coefficient (load flattening problem) |
|
1 (default) | nonnegative scalar |
Weight for cost saving (user friendly problem) |
|
0 (default) | nonnegative scalar |
Weight for priority charging (user friendly problem) |
|
0 (default) | nonnegative scalar |
Weight for battery saving (user friendly problem) |
|
1 (default) | positive integer |
Arrival time slot index of the vehicle |
|
2 (default) | positive integer |
Departure time slot index of the vehicle |
|
0 (default) | nonnegative scalar |
Minimum energy of the vehicle [kWh] |
|
100 (default) | nonnegative scalar |
Energy capacity of the vehicle [kWh] |
|
20 (default) | nonnegative scalar |
Initial energy of the vehicle [kWh] |
|
60 (default) | nonnegative scalar |
Reference energy of the vehicle [kWh] |
|
10 (default) | nonnegative scalar |
Maximum charging rate [kW] |
|
-10 (default) | nonpositive scalar |
Maximum discharging rate [kW] |
Output Arguments
Name |
Type |
Description |
|---|---|---|
|
EV object |
Electric vehicle model |
Properties
Name |
Type |
Description |
|---|---|---|
|
1 (default) | positive integer |
Charger index |
|
1 (default) | positive integer |
Group index |
|
1 (default) | nonnegative scalar |
Battery degradation coefficient (load flattening problem) |
|
1 (default) | nonnegative scalar |
Weight for cost saving (user friendly problem) |
|
0 (default) | nonnegative scalar |
Weight for priority charging (user friendly problem) |
|
0 (default) | nonnegative scalar |
Weight for battery saving (user friendly problem) |
|
1 (default) | positive integer |
Arrival time slot index of the vehicle |
|
2 (default) | positive integer |
Departure time slot index of the vehicle |
|
0 (default) | nonnegative scalar |
Minimum energy of the vehicle [kWh] |
|
100 (default) | nonnegative scalar |
Energy capacity of the vehicle [kWh] |
|
20 (default) | nonnegative scalar |
Initial energy of the vehicle [kWh] |
|
60 (default) | nonnegative scalar |
Reference energy of the vehicle [kWh] |
|
10 (default) | nonnegative scalar |
Maximum charging rate [kW] |
|
-10 (default) | nonpositive scalar |
Maximum discharging rate [kW] |
|
false (default) | logical |
Validity flag indicating if the object is valid |
Object Functions
Name |
Description |
|---|---|
Set properties; this results in |
|
Check whether an EV object satisfies required conditions |