Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed May 30, 2024
1 parent 61be691 commit 35027af
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/LocalSearchSolvers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ include("strategies/objective.jl")
include("strategies/parallel.jl")
include("strategies/perturbation.jl")
include("strategies/portfolio.jl")
include("strategies/tabu.jl") # preceed restart.jl
include("strategies/tabu.jl") # precede restart.jl
include("strategies/restart.jl")
include("strategies/selection.jl")
include("strategies/solution.jl")
Expand Down
2 changes: 1 addition & 1 deletion src/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ end
model()
Construct a _Model, empty by default. It is recommended to add the constraints, variables, and objectives from an empty _Model. The following keyword arguments are available,
- `vars=Dictionary{Int,Variable}()`: collection of variables
- `cons=Dictionary{Int,Constraint}()`: collection of cosntraints
- `cons=Dictionary{Int,Constraint}()`: collection of constraints
- `objs=Dictionary{Int,Objective}()`: collection of objectives
- `kind=:generic`: the kind of problem modeled (useful for specialized methods such as pretty printing)
"""
Expand Down
2 changes: 1 addition & 1 deletion src/solver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ remote_stop!(::AbstractSolver) = nothing

"""
post_process(s::MainSolver)
Launch a serie of tasks to round-up a solving run, for instance, export a run's info.
Launch a series of tasks to round-up a solving run, for instance, export a run's info.
"""
post_process(::AbstractSolver) = nothing

Expand Down
6 changes: 3 additions & 3 deletions src/strategies/restart.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ mutable struct TabuRestart <: RestartStrategy
reset_percentage::Float64
end

function restart(tabu_strat, ::Val{:tabu}; rp = 1.0, index = 1)
limit = tenure(tabu_strat, :tabu) - tenure(tabu_strat, :pick)
return TabuRestart(index, tenure(tabu_strat, :tabu), limit, rp)
function restart(strategy, ::Val{:tabu}; rp = 1.0, index = 1)
limit = tenure(strategy, :tabu) - tenure(strategy, :pick)
return TabuRestart(index, tenure(strategy, :tabu), limit, rp)
end

function check_restart!(rs::TabuRestart; tabu_length)
Expand Down
4 changes: 2 additions & 2 deletions src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ _get_constraints(x::Variable) = x.constraints

"""
_add_to_constraint!(x::Variable, id)
Add a constraint `id` to the list of contraints of `x`.
Add a constraint `id` to the list of constraints of `x`.
"""
_add_to_constraint!(x::Variable, id) = set!(_get_constraints(x), id)

"""
_delete_from_constraint!(x::Variable, id)
Delete a constraint `id` from the list of contraints of `x`.
Delete a constraint `id` from the list of constraints of `x`.
"""
_delete_from_constraint!(x::Variable, id) = delete!(x.constraints, id)

Expand Down

0 comments on commit 35027af

Please sign in to comment.