Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed May 1, 2024
1 parent c4ba589 commit b76a8b2
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions test/test_nlp_expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -371,26 +371,6 @@ function test_extension_recursion_stackoverflow(
return
end

function test_nlparameter_interaction()
model = Model()
@variable(model, x)
@NLparameter(model, p == 1)
e = x + p
@test e isa GenericNonlinearExpr
@test string(e) == "x + ($p)"
return
end

function test_nlexpression_interaction()
model = Model()
@variable(model, x)
@NLexpression(model, expr, sin(x))
e = x + expr
@test e isa GenericNonlinearExpr
@test string(e) == "x + ($expr)"
return
end

function test_nlobjective_with_nlexpr()
model = Model()
@variable(model, x)
Expand All @@ -414,18 +394,6 @@ function test_nlconstraint_with_nlexpr()
return
end

function test_jump_function_nonlinearexpr()
model = Model()
@variable(model, x)
@NLparameter(model, p == 1)
@NLexpression(model, expr1, sin(p + x))
@NLexpression(model, expr2, sin(expr1))
nlp = nonlinear_model(model)
@test string(jump_function(model, nlp[index(expr1)])) == "sin(($p) + $x)"
@test string(jump_function(model, nlp[index(expr2)])) == "sin($expr1)"
return
end

function test_constraint_object()
model = Model()
@variable(model, x)
Expand Down

0 comments on commit b76a8b2

Please sign in to comment.