load_qplib

load_qplib(
filename: str | PathLike,
penalty_formulation: Literal['Default', 'IntegerVariable', 'RealVariable', 'Relaxation', 'LinearRelaxation', 'QuadraticRelaxation'] | PenaltyFormulation = PenaltyFormulation.Default,
) tuple[Model, VariableGenerator]

load_qplib

Parameters:
  • filename (str | PathLike)

  • penalty_formulation (Literal['Default', 'IntegerVariable', 'RealVariable', 'Relaxation', 'LinearRelaxation', 'QuadraticRelaxation'] | amplify.PenaltyFormulation) – Defaults to PenaltyFormulation.Default.

Return type:

tuple[Model, VariableGenerator]