Skip to content

Commit

Permalink
hide using test
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquim Garcia committed May 23, 2023
1 parent 8a4ce55 commit ff3e3af
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/src/examples/FOBP_example2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(Ipopt.Optimizer; mode = BilevelJuMP.ProductMode(1e-9))

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/FOBP_example3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(Ipopt.Optimizer; mode = BilevelJuMP.ProductMode(1e-9))

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/FOBP_example4.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(Ipopt.Optimizer; mode = BilevelJuMP.ProductMode(1e-9))

Expand Down
7 changes: 1 addition & 6 deletions docs/src/examples/FOBP_example5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(Ipopt.Optimizer; mode = BilevelJuMP.ProductMode(1e-9))

# Global variables
atol = 1e-3

# First we need to create all of the variables in the upper and lower problems:

# Upper level variables
Expand All @@ -53,8 +50,6 @@ atol = 1e-3
@constraint(Lower(model), -4x + 5y <= 10)
@constraint(Lower(model), -4x - 5y <= 10)

# Initial Starting conditions #src

# Now we can solve the problem and verify the solution again that reported by
# Dempe.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/PHTP_example1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(Ipopt.Optimizer; mode = BilevelJuMP.ProductMode(1e-9))

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/PHTP_example2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(Ipopt.Optimizer; mode = BilevelJuMP.ProductMode(1e-9))

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/SOCBLP_example1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

using BilevelJuMP
using Ipopt
using Test
using Test #src

model = BilevelModel(
() -> MOI.Bridges.Constraint.SOCtoNonConvexQuad{Float64}(Ipopt.Optimizer());
Expand Down

0 comments on commit ff3e3af

Please sign in to comment.