FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Solving an MPS problem using a REST webservice, from NodeJS

Description
In this example, the Xpress Executor should first be configured to solve MPS problems. Then, you run the coco-mps-xe.js program locally; this uses REST webservice requests to send the coco.mps.gz file to the Xpress Executor and remotely solve the problem, then download and display the results. This example does not require a local installation of Xpress.

executor_rest_mps_nodejs.zip[download all files]

Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
coco-mps-xe.js[download]

Data Files





package.json

{
  "name": "coco-mps-xe",
  "version": "1.0.0",
  "description": "Example of calling Xpress Executor from NodeJS to solve MPS format model",
  "main": "coco-mps-ox",
  "author": "jamesfarmer@fico.com",
  "dependencies": {
    "delay": "1.3.1",
    "request": "",
    "prequest": "1.0.0",
    "combined-stream2": "1.1.2",
    "string-to-stream": "1.1.0"
  }
}

Back to examples browserPrevious exampleNext example