minimum_cost {EVchargcost}R Documentation

Computes the minimum cost function

Description

Function that computes the minimal cost function for a given charging function (given by a, alpha and beta), an electricity price function (given by delta and gamma), a consumption tau and a range R

Usage

minimum_cost(a, alpha, beta, delta, gamma, tau, R)

Arguments

a

vector with the breaking points of charging function in the x-axis

alpha

vector with the slopes of the charging function on each segment

beta

vector with the y-intercepts of the charging function on each segment

delta

vector with the times duration of each segment of electricity price function

gamma

vector with the prices of the electricity on each segment of electricity price function

tau

consumption of the vehicle (numerical value)

R

range of the vehicle (numerical value)

Value

list with the x-values and y-values of the minimum cost function

Examples

a <- c(0,3.3,6.6,10)
alpha <- c(0.1757576, 0.07272727, 0.05294118)
beta <- c(0, 0.34, 0.4705882)
delta <- c(4, 3, 5)
gamma <- c(0.45, 0.25, 0.5)
tau <- 0.15
R <- 250
opt_cost_function = minimum_cost(a, alpha, beta, delta, gamma, tau, R)
print(opt_cost_function)

[Package EVchargcost version 0.1.0 Index]