EMSRb_internal: Perform EMSR-b with Buy-up Heuristic for the Single-Resource Problem
Description
EMSRb_internal is called by EMRSb and sets the protection levels for multiple fare classes.
Usage
EMSRb_internal(Fare = Fare, Mean = Mean, Var = Var, p_up = numeric(length(Fare)), cap = cap)
Arguments
Fare
revenue vector associated with selling the offered products
Var
product demand variance
p_up
buy-up probabilities. The default entails no buy-up probabilities.
Value
- p
- protection levels
Details
EMSRb_internal sorts internally the Fare vector together with all other input vectors in descending order of the revenues. If p_up is missing, EMSRb_internal performs the classical EMSRb heuristic.