MainWindow
(class from pyomo.contrib.viewer.ui)
- class pyomo.contrib.viewer.ui.MainWindow(*args, **kwargs)[source]
Bases:
_MainWindow,_MainWindowUIMethods
__init__(*args, **kwargs)closeEvent(event)Handle the close event by asking for confirmation
constraints_restart()Selecting exit from the UI, triggers the close event on this mainwindow
expressions_restart()Put some useful model information into a message box
parameters_restart()This is the call back function that happens when code is executed in the ipython kernel.
residuals_restart()set_model(model)show_model_select()toggle_tabs()Play it safe by restarting all the tree view widgets when the model updates
variables_restart()Member Documentation
- model_information()[source]
Put some useful model information into a message box
Displays: * number of active equality constraints * number of free variables in equality constraints * degrees of freedom
Other things that could be added * number of deactivated equalities * number of active inequality constraints * number of deactivated inequality constratins * number of free variables not appearing in active constraints * number of fixed variables not appearing in active constraints * number of free variables not appearing in any constraints * number of fixed variables not appearing in any constraints * number of fixed variables appearing in constraints