-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix #111 and maybe minor fixes WIP #113
Conversation
After more testing, this does not solve the issue. |
Ah, it was wrong in the |
The changes look good, thanks, just missing a few tests. Yes, unit tests calling the internal functions is good. |
Ok, about ready for review. The tests are so complex we might need tests for the tests, but they were failing before and are passing now, and they do cover a lot of the changes. So... success? Is there a standard way to do randomized/property testing in Julia? I'd also welcome an explanation on what the type If this is good enough, I could try proposing a refactoring PR, if such a thing would be welcome. BTW, Is it expected for dynamic polynomials with rational coefficients to be a little unstable? |
Need to fix format |
@blegat are the QCQP tests even run? |
I've dropped the change to |
Updating of polynomial variables throughout
final_touch
meant that polynomial and MOI variables were no longer in sync; this resulted in nonsensical models.My solution just updates the variables, then takes the sorting approach from
_scalar_polynomial
innl_to_polynomial.jl
. It is not great, but without more significant changes, some variable-order-preserving hocus-pocus will have to be done anyway.I took the liberty of suggesting an edit for the
/
overload, which should now try to avoid creating rational polynomials.The
_to_polynomial
forScalarQuadraticFunction
infunctions.jl
seems redundant after issue #110.Tests that the variables are preserved should be written, but without more significant changes, that might be tricky. Maybe just a few e2e tests in the meantime? I will write a few for the
/
, at least.Fixes #111