-
Couldn't load subscription status.
- Fork 271
Open
Description
I'm not sure if this is a documentation bug (i.e. it might just not be possible), or a bug in pyscipopt, but trying to add a disjunction constraint of two matrix constraints reports
AttributeError: 'MatrixConstraint' object has no attribute '_lhs'
I guess even if it is not intended to be supported, letting it fall through to a Python error is not ideal.
To Reproduce
Run python on the following script
from pyscipopt import Model, quicksum
import numpy as np
scip = Model()
n=5
shape=(n,1)
x = scip.addMatrixVar(shape, vtype='C', name='x', ub=8)
A1 = np.random.rand(2,5)
A2 = np.random.rand(2,5)
z2 = np.c_[[0,0]]
c1=scip.addMatrixCons(A1 @ x == z2, enforce=False)
c2=scip.addMatrixCons(A2 @ x == z2, enforce=False)
scip.addConsDisjunction([c1,c2])
Expected behavior
Disjunctive Constraint added to model.
System
- OS: linux
- Version 5.6.0
- SCIP version 9.2.1
- How did you install
pyscipopt? from A debian package that I made.
Metadata
Metadata
Assignees
Labels
No labels