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.
1 parent f11a616 commit 2a0fcd3Copy full SHA for 2a0fcd3
src/Test/test_nonlinear.jl
@@ -1121,7 +1121,7 @@ function MOI.features_available(::InvalidEvaluator)
1121
return [:Grad, :ExprGraph]
1122
end
1123
1124
-MOI.objective_expr(::InvalidEvaluator) = :(NaN)
+MOI.objective_expr(::InvalidEvaluator) = :(+($NaN))
1125
1126
MOI.eval_objective(::InvalidEvaluator, x) = NaN
1127
@@ -1140,7 +1140,7 @@ written. External solvers can exclude this test without consequence.
1140
"""
1141
function test_nonlinear_InvalidEvaluator_internal(::MOI.ModelLike, ::Config)
1142
d = InvalidEvaluator()
1143
- @test MOI.objective_expr(d) == :(NaN)
+ @test MOI.objective_expr(d) == :(+($NaN))
1144
MOI.initialize(d, [:Grad, :ExprGraph])
1145
x = [1.5]
1146
# f(x)
0 commit comments