Skip to content

Commit

Permalink
removed is_activated as it's unused (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikunia authored Feb 6, 2022
1 parent f6332b5 commit e16a90e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/constraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function init_constraints!(com::CS.CoM; constraints = com.constraints)

feasible = activate_constraint!(com, constraint, constraint.fct, constraint.set)
!feasible && break
constraint.is_activated = true
end
return feasible
end
Expand Down
1 change: 0 additions & 1 deletion src/type_inits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ function ConstraintInternals(cidx::Int, fct, set, indices::Vector{Int})
Int[],
false,
false,
false,
Vector{BoundRhsVariable}(undef, 0),
)
end
Expand Down
1 change: 0 additions & 1 deletion src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ mutable struct ConstraintInternals{
indices::Vector{Int}
pvals::Vector{Int}
is_initialized::Bool
is_activated::Bool
is_deactivated::Bool # can be deactivated if it's absorbed by other constraints
bound_rhs::Vector{BoundRhsVariable}# should be set if `update_best_bound` is true
end
Expand Down
7 changes: 0 additions & 7 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ end
:set,
:pvals,
:is_initialized,
:is_activated,
:is_deactivated,
:bound_rhs,
)
Expand All @@ -150,7 +149,6 @@ end
:set,
:pvals,
:is_initialized,
:is_activated,
:is_deactivated,
:bound_rhs,
)
Expand All @@ -171,7 +169,6 @@ end
:set,
:pvals,
:is_initialized,
:is_activated,
:is_deactivated,
:bound_rhs,
)
Expand All @@ -196,7 +193,6 @@ end
:set,
:pvals,
:is_initialized,
:is_activated,
:is_deactivated,
:bound_rhs,
)
Expand Down Expand Up @@ -224,7 +220,6 @@ end
:set,
:pvals,
:is_initialized,
:is_activated,
:is_deactivated,
:bound_rhs,
)
Expand All @@ -251,7 +246,6 @@ end
:set,
:pvals,
:is_initialized,
:is_activated,
:is_deactivated,
:bound_rhs,
)
Expand Down Expand Up @@ -329,7 +323,6 @@ function init_and_activate_constraint!(
!init_constraint!(com, constraint, fct, set) && return false
constraint.is_initialized = true
!activate_constraint!(com, constraint, fct, set) && return false
constraint.is_activated = true
return true
end

Expand Down

0 comments on commit e16a90e

Please sign in to comment.