Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Objective::setQuadraticCoefficient needs to resize #24

Closed
tlambert03 opened this issue Apr 10, 2023 · 0 comments · Fixed by #25
Closed

bug: Objective::setQuadraticCoefficient needs to resize #24

tlambert03 opened this issue Apr 10, 2023 · 0 comments · Fixed by #25

Comments

@tlambert03
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant