Description Usage Arguments Value Examples
Model to solve the exact problem of Aircraft Selection and Allocation (ASA) for the containment of a wildfire.
1 2 | exact_model(data, solver = "gurobi", solver_options = list(TimeLimit = 600,
OutputFlag = 0))
|
data |
a list with the needed information about aircrafts and wildfire. For more information see |
solver |
solver name, 'gurobi', 'Rsymphony' or 'lpSolve'. |
M_prime |
penalization for the breach of the minimum aircrafts on a wildfire. |
solver_params |
list of gurobi options. Defaults to list(TimeLimit=600, OutputFlag = 0). |
information about the selection and allocation of the aircrafts.
1 2 3 4 5 6 7 8 9 | data <- WildfireResources::example_data()
sol <- WildfireResources::exact_model(data, solver="gurobi")
resources_file <- 'example/feasible/Resources.csv'
fire_file <- 'example/feasible/Fire.csv'
csvs <- WildfireResources::load_data(resources_file, fire_file)
data1 <- WildfireResources::get_data(csvs$data.resources, csvs$data.fire, 10)
sol <- WildfireResources::exact_model(data1)
sol
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.