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

N_c

positive integer

Number of chargers

T

positive integer

Number of time slots

Delta

positive scalar

Length of time slot [minutes]

EVs

EV array

Array of EV objects

Output Arguments

Name

Type

Description

G

N_c×1 cell

Cell consisting of matrices for penalty calculation (for each charger)

h

N_c×1 cell

Cell consisting of h matrices for penalty calculation (for each charger)