Join us on a walkthrough for solving optimization problems with Gurobi in Python. Gurobi is a powerful tool that leverages the state-of-the-art in optimization for solving massive and complex problems that are too challeging to solve with other methods. The talk will feature a brief presentation of optimization problems, using examples relevant to transportation. We will then shift over to coding these sample problems using gurobipy: learning how to create variables, specify objective functions, and write constraints. We will wrap up by discussing best practices and advanced solution techniques for taking your optimization to the next level.
- Register and obtain a Gurobi academic license (free for students).
- Download Gurobi Optimizer (select the latest available version for your machine).
- Activate your Gurobi license by accessing your User Portal > Licenses page (you must login). You should be provided a key in the form "grbgetkey 253e22f3-...", copy that key and paste it into your computer's command prompt or terminal (note: you should be connected on NU wifi or via NU VPN to ensure this works).
- Finally, download the Gurobi Python API, gurobipy, by pasting "pip install gurobipy" in your desired Python environment of your computer's command prompt or terminal.
Please refer to this video walkthrough for any questions.
Coding materials, examples, and other resources will be available in this repository.
Access video tutorial of jupyter notebook here.