Guides
polarobi adds four kinds of operations to polars DataFrames: adding variables, adding constraints, reading and writing attributes, and handing elements to gurobipy. Each guide covers one of them in depth.
The examples call them as grb(df).add_vars(...), after from polarobi import GurobiFrame as grb. This is the typed form of df.grb.add_vars(...); see Type Checking for why.
- Variables for adding a family of variables from a frame of keys
- Constraints for building linear constraints from frames of terms
- Attributes & Results for reading solutions and setting bounds, priorities and more
- Working with gurobipy for mixing polarobi with plain gurobipy code
- Porting a gurobipy Model for moving an existing
iter_rows()model to frames