Airline Revenue Management

class or_suite.envs.airline_revenue_management.airline_env.AirlineRevenueEnvironment(config)[source]

An environment representing the airline revenue management problem

A

The 2-D float array representing the resource consumption.

f

The float array representing the revenue per class.

P

The float array representing the distribution over arrivals.

epLen

The int number of time steps to run the experiment for.

starting_state

The float array representing the number of available seats on each flight.

timestep

The int timestep the current episode is on.

action_space

(Gym.spaces MultiDiscrete) Actions must be binary arrays of the length of the number of customers.

observation_space

(Gym.spaces MultiDiscrete) States must be float arrays of the length of the number of flights.

__init__(config)[source]
Parameters
  • A – The 2-D float array representing the resource consumption.

  • f – The float array representing the revenue per class.

  • P – The float array representing the distribution over arrivals.

  • epLen – The int number of time steps to run the experiment for.

  • starting_state – The float array representing the number of available seats on each flight.

reset()[source]

Reinitializes variables and returns the starting state.

step(action)[source]

Move one step in the environment.