Interface

get_penalty_model(specification)[source]

Factory function for penaltymodel_maxgap.

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.