Description Usage Arguments Details Value Note Author(s) See Also
View source: R/checkDefaultMethod.R
The function checkDefaultMethod
returns the default method
for a desired solver, or a default solver – method pair. A “solver”
is always the name of a R package offering facilities for solving
optimization problems.
1 | checkDefaultMethod(solver, method, probType, loadPackage = TRUE)
|
solver |
A single character string, containing the solver name (must be identical to
the name of an R-package), see |
method |
A single character string, containing the method name, see
|
probType |
A single character string, containing the problem type, see
|
loadPackage |
A single Boolean value. If set to |
In order to run simulations (optimizations) with sybil, additional software
offering facilities for solving optimization problems is required. Supported
R packages are described in SYBIL_SETTINGS
.
At first, the function checks if argument solver
contains a valid
solver. If that is not the case, a corresponding library will be loaded, if
one exists (this library must have the same name as given in solver
).
If this failes too, the default solver will be returned
(see SYBIL_SETTINGS
). Next the same is done for the argument
method
, regarding the current value of solver
.
Additionally, it will be checked, wether or not the given problem type can be
solved using the given method and solver.
sol |
Validated solver name. |
met |
Validated method name. |
parm |
Default prarmeter set for the validated method. |
Arguments "glpk"
, "cplex"
and "clp"
not used anymore;
valid arguments must be the name of the desired solver package like
"glpkAPI"
, "cplexAPI"
and "cplAPI"
.
Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>
Maintainer: Mayo Roettger <mayo.roettger@hhu.de>
SYBIL_SETTINGS
and getsybilenv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.