wflo (version 1.2)

Cost: Stub for a turbine's cost function.

Description

A function that returns the yearly installation costs for a given set of turbines (provide x and y for the turbines' locations). In its present form it only returns the 'UnitCost' value from the FarmVars settings object per turbine.

Usage

Cost(x, y)

Arguments

x

can be a single value or a numeric vector of values, contains the 'x' location(s) of turbines.

y

can be a single value or a numeric vector of values, contains the 'y' location(s) of turbines.

Value

Cost returns a vector of values. The number of elements matches the length of x and y.

Details

Note that x and y should both be of length n, i.e. the numbers of values they contain should match the number of turbines in the current wind farm layout problem. This function is a stub and can and should be replaced by something reasonable in an actual wind farm layout problem.

See Also

Profit to see where to use Cost, Yield for a similar function for yearly yield.

Examples

Run this code
# NOT RUN {
Cost(c(0.5, 0.7), c(0.2, 0.3))
## Returns a vector of two, c(100000, 100000).
# }

Run the code above in your browser using DataLab