Skip to content

Commit

Permalink
Merge pull request #160 from JuliaReach/schillic/using
Browse files Browse the repository at this point in the history
Avoid `using .PKG`
  • Loading branch information
schillic authored Jan 19, 2024
2 parents e0221ff + 81f494f commit 614c513
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/intervaloptimisation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end

function load_intervaloptimization()
return quote
using .IntervalOptimisation
using .IntervalOptimisation: HeapedVector, minimise, maximise

_default_vector_MSE = HeapedVector
end # quote
Expand Down
2 changes: 1 addition & 1 deletion src/polynomials.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using .MultivariatePolynomials
using .MultivariatePolynomials: AbstractPolynomialLike, variables

function enclose(p::AbstractPolynomialLike, dom::Interval_or_IntervalBox,
solver::AbstractEnclosureAlgorithm=NaturalEnclosure(); kwargs...)
Expand Down
4 changes: 3 additions & 1 deletion src/sdp.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using .SumOfSquares
# `@set` assumes that `SemialgebraicSets` is defined
using .SumOfSquares: SOSModel, @set, SemialgebraicSets, @variable, @constraint, @objective,
optimize!, objective_value

function _enclose_sos(sose::SumOfSquaresEnclosure, p::AbstractPolynomialLike,
dom::Interval_or_IntervalBox;
Expand Down
2 changes: 1 addition & 1 deletion src/taylormodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end

function load_taylormodels()
return quote
using .TaylorModels
using .TaylorModels: TaylorModel1, TaylorModelN, normalize_taylor, set_variables, evaluate

@inline zeroBox(N) = IntervalBox(0 .. 0, N)
@inline symBox(N) = IntervalBox(-1 .. 1, N)
Expand Down

0 comments on commit 614c513

Please sign in to comment.