Closed michaelbynum closed 2 years ago
This PR adds the constraints
zhat >= q * M zhat <= (1-q) * M
to the ReLU formulation. Currently, there is nothing relating zhat to q, only z to q. As a result, zhat can be positive, and q can be 0 or 1.
zhat
q
z
0
1
Actually, only the second constraint is needed. I will fix it.
Sorry, this is only a problem with the PyPI release.
This PR adds the constraints
to the ReLU formulation. Currently, there is nothing relating
zhat
toq
, onlyz
toq
. As a result,zhat
can be positive, andq
can be0
or1
.