penalty_matrix
Build matrices for penalty cost calculation
Description
penalty_matrix builds matrices A and b that characterizes the local constraint for each EV.
Syntax
[G,h] = penalty_matrix(N_c,T,Delta,EVs)
Input Arguments
Name |
Type |
Description |
|---|---|---|
|
positive integer |
Number of chargers |
|
positive integer |
Number of time slots |
|
positive scalar |
Length of time slot [minutes] |
|
EV array |
Array of EV objects |
Output Arguments
Name |
Type |
Description |
|---|---|---|
|
N_c×1 cell |
Cell consisting of matrices for penalty calculation (for each charger) |
|
N_c×1 cell |
Cell consisting of h matrices for penalty calculation (for each charger) |