| Title: | 'NEOS' Plug-in for the 'R' Optimization Interface |
|---|---|
| Description: | Enhances the 'R' Optimization Infrastructure ('ROI') package with a connection to the 'neos' server. 'ROI' optimization problems can be directly be sent to the 'neos' server and solution obtained in the typical 'ROI' style. |
| Authors: | Ronald Hochreiter [aut], Florian Schwendinger [aut, cre] |
| Maintainer: | Florian Schwendinger <[email protected]> |
| License: | GPL-3 |
| Version: | 1.0-3 |
| Built: | 2026-09-24 11:16:03 UTC |
| Source: | https://gitlab.com/roigrp/solver/roi.plugin.neos |
## Not run: library(ROI) mat <- matrix(c(3, 4, 2, 2, 1, 2, 1, 3, 2), nrow=3, byrow=TRUE) x <- OP(objective = c(2, 4, 3), constraints = L_constraint(L = mat, dir = c("<=", "<=", "<="), rhs = c(60, 40, 80)), maximum = TRUE) opt <- ROI_solve(x, solver = "neos", method = "scip") opt ## Optimal solution found. ## The objective value is: 7.666667e+01 solution(opt) ## [1] 0.000000 6.666667 16.666667 ## End(Not run)## Not run: library(ROI) mat <- matrix(c(3, 4, 2, 2, 1, 2, 1, 3, 2), nrow=3, byrow=TRUE) x <- OP(objective = c(2, 4, 3), constraints = L_constraint(L = mat, dir = c("<=", "<=", "<="), rhs = c(60, 40, 80)), maximum = TRUE) opt <- ROI_solve(x, solver = "neos", method = "scip") opt ## Optimal solution found. ## The objective value is: 7.666667e+01 solution(opt) ## [1] 0.000000 6.666667 16.666667 ## End(Not run)
The control variables for ROI.plugin.neos.
neos_control( method = "auto", wait = TRUE, email = "", password = "", user = "rneos", dry_run = FALSE, options = "", parameters = "", gdx = "", restart = "", wantgdx = "", wantlst = "", wantlog = "", comments = "" )neos_control( method = "auto", wait = TRUE, email = "", password = "", user = "rneos", dry_run = FALSE, options = "", parameters = "", gdx = "", restart = "", wantgdx = "", wantlst = "", wantlog = "", comments = "" )
method |
a chracter string giving the name of the solver to be selected
on the |
wait |
a logical indicating whether the R interpreter should wait for the
command to finish, or run it asynchronously. If |
email |
a character string giving the email address. |
password |
a character string giving the account password. |
user |
a character string giving the username. |
dry_run |
a logical if |
options |
a character string (default is |
parameters |
a character string (default is |
gdx |
a character string (default is |
restart |
a character string (default is |
wantgdx |
a character string (default is |
wantlst |
a character string (default is |
wantlog |
a character string (default is |
comments |
a character string (default is |
Translate a ROI OP to GAMS code.
This function can translate optimization problems with linear or quadratic objective
and linear or quadratic constraints.
to_gams(x)to_gams(x)
x |
an ROI object of class |
a character string giving the GAMS optimization model.
library("ROI") mat <- matrix(c(3, 4, 2, 2, 1, 2, 1, 3, 2), nrow=3, byrow=TRUE) x <- OP(objective = c(2, 4, 3), constraints = L_constraint(L = mat, dir = c("<=", "<=", "<="), rhs = c(60, 40, 80)), bounds = V_bound(ui = seq_len(3), ub = c(1000, Inf, 1000), nobj = 3), maximum = TRUE) writeLines(to_gams(x))library("ROI") mat <- matrix(c(3, 4, 2, 2, 1, 2, 1, 3, 2), nrow=3, byrow=TRUE) x <- OP(objective = c(2, 4, 3), constraints = L_constraint(L = mat, dir = c("<=", "<=", "<="), rhs = c(60, 40, 80)), bounds = V_bound(ui = seq_len(3), ub = c(1000, Inf, 1000), nobj = 3), maximum = TRUE) writeLines(to_gams(x))