Interrogating Pyomo Models

Show solver output by adding the tee=True option when calling the solve function

>>> SolverFactory('glpk').solve(model, tee=True) 

You can use the pprint function to display the model or individual model components

>>> model.pprint() 
>>> model.x.pprint()