cost_value
Calculate the total cost
Description
cost_value calculates the total cost of a schedule under a specific scenario.
Syntax
cost = cost_value(scenario,u)
cost = cost_value(scenario,u,rho)
Input Arguments
Name |
Type |
Description |
|---|---|---|
|
Scenario object |
Scenario object that specifies the optimization problem. |
|
T×N_c matrix |
Charging/discharging schedule for each charger |
|
5000 (default) | nonnegative scalar |
Penalty parameter for cost calculation |
Output Arguments
Name |
Type |
Description |
|---|---|---|
|
struct |
Structure containing matrices for cost calculation. |