Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed Nov 16, 2023
1 parent 30d212a commit 351773c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/NonconvexMultistart.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ export HyperoptAlg,
import Hyperopt
using Reexport, Parameters, Setfield, ChainRulesCore, Sobol
@reexport using NonconvexCore
using NonconvexCore:
reset!, isfeasible, VecModel, AbstractOptimizer, AbstractResult
using NonconvexCore: reset!, isfeasible, VecModel, AbstractOptimizer, AbstractResult
import NonconvexCore: optimize!, Workspace

include("hyperopt.jl")
Expand Down
8 changes: 4 additions & 4 deletions src/hyperopt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
struct HyperoptAlg{S <: AbstractOptimizer} <: AbstractOptimizer
struct HyperoptAlg{S<:AbstractOptimizer} <: AbstractOptimizer
sub_alg::S
end

Expand All @@ -15,7 +15,7 @@ end
- `ctol`: infeasibility tolerance for accepting a solution as feasible
- `keep_all`: if true, all the solutions of the sub-problems will be saved
"""
struct HyperoptOptions{S1, L, U, S2 <: Hyperopt.Sampler, C}
struct HyperoptOptions{S1,L,U,S2<:Hyperopt.Sampler,C}
sub_options::S1
lb::L
ub::U
Expand Down Expand Up @@ -47,7 +47,7 @@ function HyperoptOptions(;
)
end

struct HyperoptWorkspace{S <: Workspace, X <: AbstractVector, O <: HyperoptOptions} <: Workspace
struct HyperoptWorkspace{S<:Workspace,X<:AbstractVector,O<:HyperoptOptions} <: Workspace
sub_workspace::S
x0::X
options::O
Expand Down Expand Up @@ -78,7 +78,7 @@ When using multiple x0 in [`optimize`](@ref), return this result, including foll
- `results`: all the search results.
- `optimal_ind`: the index of the optimal solution in `results`.
"""
struct HyperoptResult{M1, M2, R, O} <: AbstractResult
struct HyperoptResult{M1,M2,R,O} <: AbstractResult
minimum::M1
minimizer::M2
results::R
Expand Down

0 comments on commit 351773c

Please sign in to comment.