Skip to contents

Read-only queries against the NEOS Server XML-RPC API (https://neos-server.org). These let you check connectivity and discover which solver/input-method combinations are available before wiring NEOS in as a solver backend. No account or API key is required.

Usage

neos_ping(timeout = 30)

neos_list_categories(timeout = 30)

neos_list_solvers(category, timeout = 30)

neos_get_template(category, solver, inputMethod = "GAMS", timeout = 30)

Arguments

timeout

request timeout in seconds.

category

NEOS solver category abbreviation, e.g. "milp", "lp", "nco" (see neos_list_categories()).

solver

NEOS solver name, e.g. "CPLEX", "Gurobi" (see neos_list_solvers()).

inputMethod

input format, e.g. "GAMS", "MPS", "AMPL".

Value

  • neos_ping(): a status string (invisibly), TRUE if the server is alive.

  • neos_list_categories(): a named character vector (abbrev -> full name).

  • neos_list_solvers(): a character vector of solver:inputMethod strings.

  • neos_get_template(): the XML job template as a single string.

Details

NEOS provides commercial solvers free of charge for academic / non-commercial use only, submitted jobs are public and stored (do not send confidential data), and jobs are limited to roughly 3 GB RAM / 8 h. Please cite NEOS in publications.

Examples

if (FALSE) { # \dontrun{
neos_ping()
head(neos_list_categories())
neos_list_solvers("milp")
cat(neos_get_template("milp", "CPLEX", "GAMS"))
} # }