psrenergy / ToQUBO.jl

🟦 JuMP ToQUBO Automatic Reformulation
https://psrenergy.github.io/ToQUBO.jl
Other
27 stars 2 forks source link

`NTR_KZFD` quadratization dispatch not being called #69

Closed pedroripper closed 8 months ago

pedroripper commented 1 year ago

This function should verify if the coefficient for each term is negative, so it can call the NTR_KZFD dispatch.

https://github.com/psrenergy/ToQUBO.jl/blob/0a7b10bd938a93e98eb97b5deaa3e52e929fd7be/src/lib/pbo/quadratization.jl#L132-L148

We can just follow the same logic from this dispatch:

https://github.com/psrenergy/ToQUBO.jl/blob/0a7b10bd938a93e98eb97b5deaa3e52e929fd7be/src/lib/pbo/quadratization.jl#L116-L130