cran / ROI.plugin.neos

:exclamation: This is a read-only mirror of the CRAN R package repository. ROI.plugin.neos — 'NEOS' Plug-in for the 'R' Optimization Interface. Homepage: https://roigrp.gitlab.io, https://gitlab.com/roigrp/solver/ROI.plugin.neos
0 stars 0 forks source link

Example code throws error #1

Open 92Magnum opened 4 years ago

92Magnum commented 4 years ago

Hi Neos team, I have been trying to run the following example snippet from the vignette

Sys.setenv(ROI_LOAD_PLUGINS = FALSE)
library(ROI)
library(ROI.plugin.neos)

x <- OP(objective = c(3, 1, 3), maximum = TRUE)
constraints(x) <- L_constraint(L = rbind(c(-1, 2, 1), c( 0, 4, -3),
c( 1, -3, 2)),
dir = leq(3), rhs = c(4, 2, 3))
types(x) <- c("I", "C", "I")
(s <- ROI_solve(x, solver = "neos", method = "scip"))

I am running into the following error.

Error in from_xmlrpc(rawToChar(response$content), raise_error = raise_error) : 
  faultCode: 1
faultString: <class 'Exception'>:'utf-8' codec can't decode bytes in position 15-16: invalid continuation byte

Here's the R version info, if it helps.

platform       x86_64-pc-linux-gnu         
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          3                           
minor          5.3                         
year           2019                        
month          03                          
day            11                          
svn rev        76217                       
language       R                           
version.string R version 3.5.3 (2019-03-11)
nickname       Great Truth
gaborcsardi commented 4 years ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Thanks!