load_lp

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

load_lp

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

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

戻り値の型:

tuple[Model, VariableGenerator]