# 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 Penalty model with the given specification. penaltymodel.PenaltyModel penaltymodel.ImpossiblePenaltyModel – If the penalty cannot be built.