load_lp¶
- load_lp(
- filename: str | PathLike,
- penalty_formulation: Literal['Default', 'IntegerVariable', 'RealVariable', 'Relaxation', 'LinearRelaxation', 'QuadraticRelaxation'] | PenaltyFormulation = PenaltyFormulation.Default,
Load an LP file and construct a model.
The LP format follows a supported subset of the Gurobi LP format. Return the loaded model and its associated variable generator.
- Parameters:
- Returns:
Loaded model and its associated variable generator.
- Return type: