OnlyEnforceIfConstraint#

class tagarnina.optimization.OnlyEnforceIfConstraint(*, feature1: str, feature2: str)[source]#

If feature1 is selected, then feature2 must be selected too.

Parameters:
feature1str

Feature whose selection implies the selection of feature2.

feature2str

Feature that must be selected when feature1 is.

Methods

__init__(*, feature1, feature2)

Attributes

feature1

feature2