Description Usage Arguments Value Examples
Mathematical model to solve the aircraft scheduling problem.
1 2 | rest_model(I_select, m_select, S_fix_hist, params, M_prime, solver = "gurobi",
solver_params = list(TimeLimit = 600, OutputFlag = 0))
|
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). |
list with the optimal value of the variables, objective function, ...
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.