Programming Language Interfaces
Python Dictionary Example
- Python Dictionary Example
- Motivation
- Lists and Tuples
- Dictionaries
- List comprehension and generator expressions
- Interfaces
- Example: mip1
- Creating the environment
- Attributes
- Creating the model
- Adding variables to the model
- gurobipy, the Gurobi Python Interface
- Adding constraints to the model
- Setting the objective
- Optimizing the model
- Reporting the results
- Cleaning Up
- Error Reporting
- Building and running the example
- Customization Through Callbacks