@@ -154,20 +154,18 @@ function ModelAnalyzer.analyze(
154
154
for var in JuMP. all_variables (model)
155
155
lb = if JuMP. has_lower_bound (var)
156
156
JuMP. lower_bound (var)
157
+ elseif JuMP. is_fixed (var)
158
+ JuMP. fix_value (var)
157
159
else
158
160
- Inf
159
161
end
160
162
ub = if JuMP. has_upper_bound (var)
161
163
JuMP. upper_bound (var)
164
+ elseif JuMP. is_fixed (var)
165
+ JuMP. fix_value (var)
162
166
else
163
167
Inf
164
168
end
165
- if lb > ub
166
- push! (out. infeasible_bounds, InfeasibleBounds (var, lb, ub))
167
- bounds_consistent = false
168
- else
169
- variables[var] = Interval (lb, ub)
170
- end
171
169
if JuMP. is_integer (var)
172
170
if abs (ub - lb) < 1 && ceil (ub) == ceil (lb)
173
171
push! (
@@ -186,6 +184,12 @@ function ModelAnalyzer.analyze(
186
184
bounds_consistent = false
187
185
end
188
186
end
187
+ if lb > ub
188
+ push! (out. infeasible_bounds, InfeasibleBounds (var, lb, ub))
189
+ bounds_consistent = false
190
+ else
191
+ variables[var] = Interval (lb, ub)
192
+ end
189
193
end
190
194
# check PSD diagonal >= 0 ?
191
195
# other cones?
@@ -371,10 +375,6 @@ function iis_elastic_filter(original_model::JuMP.GenericModel, optimizer)
371
375
end
372
376
end
373
377
374
- # TODO : add deletion filter
375
- # otherwise this is not an IIS (it does contain an IIS)
376
-
377
- # pre_iis = Set(val[1] for val in de_elastisized)
378
378
pre_iis = Set (cadidates)
379
379
iis = JuMP. ConstraintRef[]
380
380
for con in JuMP. all_constraints (
@@ -677,7 +677,7 @@ function ModelAnalyzer.summarize(
677
677
io:: IO ,
678
678
data:: Data ;
679
679
verbose = true ,
680
- max_issues = typemax (Int) ,
680
+ max_issues = ModelAnalyzer . DEFAULT_MAX_ISSUES ,
681
681
)
682
682
print (io, " ## Infeasibility Analysis\n\n " )
683
683
0 commit comments