NgetFinalResults {rneos} | R Documentation |
XML-RPC method getFinalResults of Neos
Description
This functions calls the XML-RPC method “getFinalResults()” of NEOS, which gets results of a job submitted to NEOS. If the job is still running, then this function will hang until the job is finished.
Usage
NgetFinalResults(obj, convert = TRUE)
Arguments
obj |
NeosJob, an object of class |
convert |
Logical, if |
Value
An object of class NeosAns
.
Author(s)
Bernhard Pfaff
References
NEOS API: https://neos-server.org/neos/xml-rpc.html
See Also
NeosAns
and NsubmitJob
Examples
## Not run:
tmp <-NgetSolverTemplate(category = "lp", solvername = "MOSEK",
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)
NgetFinalResults(obj = test, convert = TRUE)
## End(Not run)
[Package rneos version 0.4-0 Index]