Load_Problem | R Documentation |
Load_Problem
loads the optimization problem into Julia environment. When using each of the Optimize functions, Load_Problem
will be automatically called
prior to solving the problem. However, the user may want to use Load_Problem
to ensure that there is no error in the process of loading the problem and
setting up Julia.
Load_Problem(First_Objective=0, Second_Objective=0, Risk_Objective=0,
Solver="SCIP", Silence= FALSE, Env= .GlobalEnv)
First_Objective |
A binary parameter: If 1, the first objective function ( |
Second_Objective |
A binary parameter: If 1, the second objective function ( |
Risk_Objective |
A binary parameter: If 1, the Risk objective function ( |
Solver |
A string: defining the solver to be used to solve the problem. (Default= "SCIP") |
Silence |
A binary parameter: if |
Env |
the environment where the package should create or access variables. By default the package works in the R's Global environment. (Default: .GlobalEnv) |
Load_Problem
sets up the Julia environment and creats the necessary variables and functions in Julia. It will also create the optimization model
without solving it.
Based on the existance of variables named "Budget", "Connectivity", "Disconnectivity", and "Constraints",
Load_Problem
will include their respective constraints in the model. If the user does not want to include any of these constraints
in the model, its respective variable should not exists in the environment. In other words, if exists("Budget", envir= *)==TRUE
, the function will create the Budget constraints
in the model, and if exists("Budget", envir= *)==FALSE
, no Budget constraint will be included in the optimization model.
(Note: * refers to the environment passed to the function as Env
parameter.)
NULL (creates some variables in the environment but returns nothing)
Other Optimizer Functions:
Optimize_First_Objective()
,
Optimize_NBP()
,
Optimize_Second_Objective()
,
Optimize_WSO()
## Not run:
## to load objective one and two, but not the risk objective, into Julia environment ##
Load_Problem(First_Objective=1, Second_Objective=1, Risk_Objective=0, Solver="SCIP")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.