checkDefaultMethod: Validate Solver and Method

Description Usage Arguments Details Value Note Author(s) See Also

View source: R/checkDefaultMethod.R

Description

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.

Usage

1

Arguments

solver

A single character string, containing the solver name (must be identical to the name of an R-package), see SYBIL_SETTINGS.

method

A single character string, containing the method name, see SYBIL_SETTINGS.

probType

A single character string, containing the problem type, see optObj.

loadPackage

A single Boolean value. If set to TRUE, load the given solver package via require.

Details

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.

Value

sol

Validated solver name.

met

Validated method name.

parm

Default prarmeter set for the validated method.

Note

Arguments "glpk", "cplex" and "clp" not used anymore; valid arguments must be the name of the desired solver package like "glpkAPI", "cplexAPI" and "cplAPI".

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

See Also

SYBIL_SETTINGS and getsybilenv


sybil documentation built on May 31, 2021, 5:08 p.m.