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