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.
- Parameters:
filename (str | PathLike) β Path of the QPLIB file to read.
penalty_formulation (Literal['Default', 'IntegerVariable', 'RealVariable', 'Relaxation', 'LinearRelaxation', 'QuadraticRelaxation'] | amplify.PenaltyFormulation) β Penalty formulation used for inequality constraints. Defaults to
PenaltyFormulation.Default.
- Returns:
Loaded model and its associated variable generator.
- Return type: