rest_model: Build and solve the rest model.

Description Usage Arguments Value Examples

Description

Mathematical model to solve the aircraft scheduling problem.

Usage

1
2
rest_model(I_select, m_select, S_fix_hist, params, M_prime, solver = "gurobi",
  solver_params = list(TimeLimit = 600, OutputFlag = 0))

Arguments

I_select

selected aircraft.

m_select

last period to estabish the aircraft rests.

S_fix_hist

aircraft start period.

params

common model params.

M_prime

penalty for the aircraft number breach.

solver

solver name: 'gurobi', 'lpSolve' or 'Rsymphony'.

solver_params

list of gurobi options. Defaults to list(TimeLimit=600, OutputFlag = 0).

Value

list with the optimal value of the variables, objective function, ...

Examples

1
2
3
4
5
6
7
data <- example_data()
params <- get_model_params(data)
I_select <- rep(T, length(params$I))
m_select <- length(params$Periods)
S_fix_hist = list()
M_prime = 1000000
rest_model(I_select, m_select, S_fix_hist, params, M_prime, solver="lpSolve")

jorgerodriguezveiga/WildfireResources documentation built on May 31, 2019, 2:49 p.m.