uf_subproblem
Solve the sub-optimization problem in distributed algorithm for user friendly problem
Description
uf_subproblem solves the sub-optimization problem assigned for each charger during the distributed algorithm for user friendly problem. This function is only for the function user_friendly.
Syntax
[xi,optval] = uf_subproblem(T,l,x,d,P_max,P_min,A,b,empty_ind,G,h,cs,pc1,pc2,pc3,bs,c,rho)
Input Arguments
Name |
Type |
Description |
|---|---|---|
|
positive integer |
Number of time slots comprising a scenario |
|
(2T)×1 vector |
Variable for building the cost function |
|
(3T)×1 vector |
Variable for building the cost function |
|
(2T)×1 vector |
Variable for building the cost function |
|
nonnegative scalar |
Maximum aggregate charging power |
|
nonpositive scalar |
Minimum aggregate charging power |
|
T×T matrix |
Local constraint matrix |
|
T×1 vector |
Local constraint matrix |
|
T×1 vector |
Index for empty time slot (for one charger) |
|
matrix |
Penalty matrix |
|
vector |
Penalty matrix |
|
1×T vector |
Vector for calculating (cost saving) cost function |
|
1×T vector |
Vector for calculating (priority charging) cost function |
|
T×1 vector |
Vector for calculating (priority charging) cost function |
|
T×T matrix |
Matrix for calculating (priority charging) cost function |
|
1×T vector |
vector for calculating (battery saving) cost function |
|
positive scalar |
Parameter for optimization algorithm |
|
nonnegative scalar |
Penalty parameter |
Output Arguments
Name |
Type |
Description |
|---|---|---|
|
(3T)×1 vector |
Optimal solution of the subproblem |
|
scalar |
Optimal value |