OnlyExcludeIfConstraint#

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

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

Parameters:
feature1str

Feature whose selection excludes feature2.

feature2str

Feature that cannot be selected when feature1 is.

Methods

__init__(*, feature1, feature2)

Attributes

feature1

feature2