I create this simple code as a demonstration:
using GLPK
using JuMP
m = Model(GLPK.Optimizer)
@variable(m, y[i=1:100], Bin)
@objective(m, Min, sum(y))
@constraint(m, [j=5:50], sum([y[i] for i in j:j+10]) >= 5)
optimize!(m)
Please note this integer program doesn't represent anything, it's only for example. The previous code doesn't output anything while I remembered using Gurobi or even GLPK and Julia JuMP used to output datas about where it is in the current solving process. How many nodes already treated, how long the algorithm has been running, current best bound and so on. Note that it is not related to the size of my integer program as it doesn't output anything too on a bigger program I run with more constraints and variables.
I also tried:
julia> get_optimizer_attribute(m, MOI.Silent())
false
Which is coherent with the following not changing anything:
julia> unset_silent(m)
false
Am I missing something?
I am running Julia 1.5.2, JuMP v0.21.5 and GLPK v0.14.4.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…