Discover our new DOcloud GitHub Catalog where we will make available different prewritten samples to help you quickly start your model or application.
You can see a summary of each sample in the catalog, and you can search the catalog using keywords to locate:
- development language: Java, Python, …
- model format: CPO, CPLEX, OPL.
- sample category: application, model, client.
- contents of a sample title or description.
Once you find a sample that interests you, just click the summary to open its project repository in GitHub and start using it within your own project.
The DOcloud GreenTruck sample is a complete web application to optimize transportation shipments using a hub and spoke system. The optimization model is written in OPL and uses the CPLEX engine. The application data is stored in a MongoDB database. When an optimized plan is requested, the application streams the input data to a DOcloud optimization job using the Java client API, and writes the results back to the database. The web UI is implemented with the AngularJS framework and shows how to edit some data, submit an optimization job, and display job status using WebSockets. The application can be built and executed locally or deployed to IBM Bluemix.