Matrix-friendly Modeling with Gurobipy

Event Recap

Starting with Gurobi version 10.0, gurobipy makes it very easy to build optimization models that are naturally formulated with multi-dimensional constraints.  In particular you can use familiar concepts from NumPy like dimensions, shape, vectorization and broadcasting in combination with gurobipy’s matrix-friendly objects to construct your optimization model.  In this webinar we will walk you through this new functionality, discuss performance aspects, and present best practice code patterns.

Access the Jupyter Notebook Modeling Example

 

How to run Jupyter Notebook Modeling Example

  • Save webinar_matrixfriendly_final.ipynb from this email then open it in Jupyter Notebook
  • To run the example the first time, choose “Runtime” and then click “Run all”.
  • All the cells in the Jupyter Notebook will be executed.   This may take some time because there are several timing runs in the notebook.
  • The example will install the gurobipy package, which includes a limited Gurobi license that allows you to solve small models.
  • You can also modify and re-run individual cells.
  • For subsequent runs, choose “Runtime” and click “on “Restart and run all”.
  • Feel free to explore all of the examples Robert shared.

*If you are new to Jupyter Notebook, Install Jupyter Notebook and familiarize yourself with the documentation.

Meet the Experts

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search