We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2327311 + 428ed32 commit 9a063c5Copy full SHA for 9a063c5
lib/OptimizationMOI/src/nlp.jl
@@ -491,10 +491,10 @@ function _add_moi_variables!(opt_setup, evaluator::MOIOptimizationNLPEvaluator)
491
492
for i in 1:num_variables
493
if evaluator.lb !== nothing && evaluator.lb[i] > -Inf
494
- MOI.add_constraint(opt_setup, θ[i], MOI.GreaterThan(evaluator.lb[i]))
+ MOI.add_constraint(opt_setup, θ[i], MOI.GreaterThan(Float64(evaluator.lb[i])))
495
end
496
if evaluator.ub !== nothing && evaluator.ub[i] < Inf
497
- MOI.add_constraint(opt_setup, θ[i], MOI.LessThan(evaluator.ub[i]))
+ MOI.add_constraint(opt_setup, θ[i], MOI.LessThan(Float64(evaluator.ub[i])))
498
499
if evaluator.int !== nothing && evaluator.int[i]
500
if evaluator.lb !== nothing && evaluator.lb[i] == 0 &&
0 commit comments