Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in setting a negative lower bound of a SOC constrained variab…
…le with `add_constraints` (#302) * Adds a test uncovering a bug in SOC constraints. The bug was that defining a negative lower bound on the `t` variable of a SOC constraint by means of `add_constraints` (GreaterThan) silently corrupted the related `VariableInfo` object, but using `add_constraint` worked. * Solves the bug in SOC constraints. The one uncovered by the test added in the last commit. The bug is solved by reworking many methods to work correctly with batch/vector (that is where the bug appeared) and changing single-element methods to wrap arguments and call the batch/vector variant. This way there will exist no difference in behavior between single-element and batch methods. * Replace our solution by the one proposed by @odow
- Loading branch information