Table of contents

Decision Optimization Notebooks

Introduces the Decision Optimization notebooks available, how to create and run them in DSX Local.

There are multiple Decision Optimization Notebooks available on the Community page in DSX Local, including:
  • The Sudoku example, a Constraint Programming example in which the objective is to solve a 9x9 Sudoku grid.
  • The Balance in-house and external production of pasta example, a Linear Programming example in which the objective is to minimize the production cost for some pasta products and ensure that the customers' demand for the products is satisfied.

Running Decision Optimization Notebooks

Depending on whether you are interested in Mathematical Programming or Linear Programming, choose one of the two Notebooks presented above and run it in DSX Local:
  1. From the Community page, open the Notebook you want to work with.
  2. Click the Download button Download button to download the example on your machine.
  3. If you have already created a project in DSX Local, open your existing project. Else create a new project: select My Projects from the menu and click Create Project.
  4. To create a new Notebook, click the add Notebooks button Add notebooks button.
  5. Choose From File. Then click Browse… and browse to the Notebook on your machine.
  6. Click Create Notebook.
Your Notebook automatically opens.

To run your Notebook, click Cell > Run All.

See Problem size for the size of problems that can be solved without subscription.

Decision Optimization tutorials

DOcplex is a native Python API for modeling and solving optimization problems. The API is available by default in DSX as part of the Python environment. See Requirements and versions for the currently supported version of Python.

You can read the full API documentation on RawGit.

You can find more DOcplex examples that will introduce you to the DOcplex Python API on the Decision Optimization GitHub:

  • Linear Programming

    You can read the detailed description of this Notebook here. You can clone or download this Notebook here.

  • Beyond Linear Programming

    You can read the detailed description of this Notebook here. You can clone or download this Notebook here.

  • Getting started with Scheduling in CPLEX for Python

    You can read the detailed description of this Notebook here. You can clone or download this Notebook here.