funkelab / ilpy

Unified python wrappers for popular ILP solvers
https://funkelab.github.io/ilpy/
MIT License
3 stars 2 forks source link

bug: Objective::setQuadraticCoefficient needs to resize #24

Closed tlambert03 closed 1 year ago

tlambert03 commented 1 year ago
In [1]: from ilpy import Objective

In [2]: obj = Objective()

In [3]: obj.set_quadratic_coefficient(0,0,1)

In [4]: len(obj)
Out[4]: 0

expected result: len(obj) == 1