From b76a8b218e490f699fc6d6b08e9d8d581d27e58a Mon Sep 17 00:00:00 2001 From: odow Date: Thu, 2 May 2024 10:05:35 +1200 Subject: [PATCH] Update --- test/test_nlp_expr.jl | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/test/test_nlp_expr.jl b/test/test_nlp_expr.jl index 6311b192216..58266ae659f 100644 --- a/test/test_nlp_expr.jl +++ b/test/test_nlp_expr.jl @@ -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) @@ -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)