Skip to content

Commit e16a90e

Browse files
authored
removed is_activated as it's unused (#284)
1 parent f6332b5 commit e16a90e

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

src/constraints.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function init_constraints!(com::CS.CoM; constraints = com.constraints)
4949

5050
feasible = activate_constraint!(com, constraint, constraint.fct, constraint.set)
5151
!feasible && break
52-
constraint.is_activated = true
5352
end
5453
return feasible
5554
end

src/type_inits.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ function ConstraintInternals(cidx::Int, fct, set, indices::Vector{Int})
3232
Int[],
3333
false,
3434
false,
35-
false,
3635
Vector{BoundRhsVariable}(undef, 0),
3736
)
3837
end

src/types.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ mutable struct ConstraintInternals{
351351
indices::Vector{Int}
352352
pvals::Vector{Int}
353353
is_initialized::Bool
354-
is_activated::Bool
355354
is_deactivated::Bool # can be deactivated if it's absorbed by other constraints
356355
bound_rhs::Vector{BoundRhsVariable}# should be set if `update_best_bound` is true
357356
end

src/util.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ end
132132
:set,
133133
:pvals,
134134
:is_initialized,
135-
:is_activated,
136135
:is_deactivated,
137136
:bound_rhs,
138137
)
@@ -150,7 +149,6 @@ end
150149
:set,
151150
:pvals,
152151
:is_initialized,
153-
:is_activated,
154152
:is_deactivated,
155153
:bound_rhs,
156154
)
@@ -171,7 +169,6 @@ end
171169
:set,
172170
:pvals,
173171
:is_initialized,
174-
:is_activated,
175172
:is_deactivated,
176173
:bound_rhs,
177174
)
@@ -196,7 +193,6 @@ end
196193
:set,
197194
:pvals,
198195
:is_initialized,
199-
:is_activated,
200196
:is_deactivated,
201197
:bound_rhs,
202198
)
@@ -224,7 +220,6 @@ end
224220
:set,
225221
:pvals,
226222
:is_initialized,
227-
:is_activated,
228223
:is_deactivated,
229224
:bound_rhs,
230225
)
@@ -251,7 +246,6 @@ end
251246
:set,
252247
:pvals,
253248
:is_initialized,
254-
:is_activated,
255249
:is_deactivated,
256250
:bound_rhs,
257251
)
@@ -329,7 +323,6 @@ function init_and_activate_constraint!(
329323
!init_constraint!(com, constraint, fct, set) && return false
330324
constraint.is_initialized = true
331325
!activate_constraint!(com, constraint, fct, set) && return false
332-
constraint.is_activated = true
333326
return true
334327
end
335328

0 commit comments

Comments
 (0)