Skip to content

Error: incompatible constructor arguments in Disjunction Constraint Example #878

@slutz14

Description

@slutz14

Hello,
I followed the example found here except that I load the network from a onnx- instead of nnet-file.

When runing the code, I get the following error Code:


TypeError Traceback (most recent call last)

in <cell line: 0>()
----> 1 vals1, stats1 = net1.solve()

1 frames

/usr/local/lib/python3.11/dist-packages/maraboupy/parsers/InputQueryBuilder.py in getInputQuery(self)
331 converted_disjunct = []
332 for e in disjunct:
--> 333 eq = MarabouCore.Equation(e.EquationType)
334 for (c, v) in e.addendList:
335 assert v < self.numVars

TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. maraboupy.MarabouCore.Equation()
2. maraboupy.MarabouCore.Equation(arg0: maraboupy.MarabouCore.Equation.EquationType)

Invoked with: <class 'maraboupy.MarabouCore.Equation.EquationType'>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions