load_qplib

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

load_qplib

パラメータ:
  • filename (str | PathLike)

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

戻り値の型:

tuple[Model, VariableGenerator]