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

Scenario object

Scenario object that specifies the optimization problem.

u

T×N_c matrix

Charging/discharging schedule for each charger

rho

5000 (default) | nonnegative scalar

Penalty parameter for cost calculation

Output Arguments

Name

Type

Description

matrices

struct

Structure containing matrices for cost calculation.