I would like to see the current results (e.g. MIP gaps) of a solver in pyomo (as in GAMS) while solving the problem. I read that I should use the option "stream-solver" (see for instance here https://static1.squarespace.com/static/5492d7f4e4b00040889988bd/t/57bd0f93d482e927298cc9da/1472008085561/3_PyomoFundamentals.pdf). But I do not know how to apply it. When I put it as a parameter I get an error message. So here you can see what I tried:
opt = pyo.SolverFactory('glpk')
results = opt.solve(model, stream-solver=true)
Do you know how I can do that?