NgetJobInfo {rneos} | R Documentation |
This functions calls the XML-RPC method “getJobInfo()” of NEOS and returns a four-tuple (category, solver name, input, status).
NgetJobInfo(obj, convert = TRUE)
obj |
Object of class |
convert |
Logical, if |
An object of class NeosAns
.
Bernhard Pfaff
NEOS API: https://neos-server.org/neos/xml-rpc.html
NeosAns
, NeosJob
and NgetJobStatus
## Not run: tmp <-NgetSolverTemplate(category = "go", solvername = "ASA", inputMethod = "AMPL") ## setting path to example model and data file modf <- system.file("ExAMPL", "diet.mod", package = "rneos") datf <- system.file("ExAMPL", "diet.dat", package = "rneos") ## import of file contents modc <- paste(paste(readLines(modf), collapse = "\n"), "\n") datc <- paste(paste(readLines(datf), collapse = "\n"), "\n") ## create list object argslist <- list(model = modc, data = datc, commands = "", comments = "") ## create XML string xmls <- CreateXmlString(neosxml = tmp, cdatalist = argslist) test <- NsubmitJob(xmlstring = xmls, user = "rneos", interface = "", id = 0) NgetJobInfo(obj = test, convert = TRUE) ## End(Not run)