Interface¶
-
get_penalty_model
(specification)[source]¶ Factory function for penaltymodel-lp.
- Parameters
specification (penaltymodel.Specification) – The specification for the desired penalty model.
priority (int) – -100
- Returns
Penalty model with the given specification.
- Return type
penaltymodel.PenaltyModel
- Raises
penaltymodel.ImpossiblePenaltyModel – If the penalty cannot be built.