Open ecyrb opened 2 years ago
I haven't debugged, but the problem looks to be here: https://github.com/lanl-ansi/Juniper.jl/blob/7e529e98cd22482071e0f150bd6917e01ec5f94d/src/fpump.jl#L67-L83
We're producing a ScalarAffineFunction{Int}
instead of ScalarAffineFunction{Float64}
. It's probably just a matter of adding some Float64
casts in the right places.
Cut per @odow in discourse.
Simple sum-of-squares toy example, succeeds with 5 variables, stack-trace with 6 variables.
I know it’s sort of a silly example, but it feels to me like the behaviour should be consistent between problem_size = 5 and 6.
(full code as
testcase.txt
attached)testcase.txt
causes stack-trace: (full output in
output.txt
attached)output.txt
Edit: package versions from my system: