The IBM Decision Optimization on Cloud R Client is now available for download on IBM Decision Optimization GitHub.
With this R client, you can quickly and easily submit optimization problems to IBM Decision Optimization on Cloud service. You focus on modeling your problem with your usual modeling tools and scripting languages, and our R client takes care of every step needed to solve your problem using the IBM Decision Optimization on Cloud service.
The client requires that you install R 3.2, and that you have an account and API Key for the IBM Decision Optimization on Cloud service (You can register for a free trial).
The R client is currently only available as a direct installation from GitHub.
You install the client with:
Submitting a problem (that is, a model and its data) and getting the result is as simple as:
client <- DOcplexcloudClient$new(url=url, key=api_key) job <- client$submitJob(addAttachment("problem.mod"), addAttachment("problem.dat")) solution <- client$getAttachment(job, "solution.json")
You can download more example code from the IBM Decision Optimization GitHub repository.