MainWindow
(class from pyomo.contrib.viewer.ui)
-
class pyomo.contrib.viewer.ui.MainWindow(*args, **kwargs)[source]
Bases: _MainWindow, _MainWindowUI
-
__init__(*args, **kwargs)[source]
Methods
__init__(*args, **kwargs)
|
|
closeEvent(event)
|
Handle the close event by asking for confirmation |
constraints_restart()
|
|
exit_action()
|
Selecting exit from the UI, triggers the close event on this mainwindow |
expressions_restart()
|
|
model_information()
|
Put some useful model information into a message box |
parameters_restart()
|
|
refresh_on_execute()
|
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()
|
|
update_model()
|
Play it safe by restarting all the tree view widgets when the model updates |
variables_restart()
|
|
Member Documentation
-
closeEvent(event)[source]
Handle the close event by asking for confirmation
-
exit_action()[source]
Selecting exit from the UI, triggers the close event on this mainwindow
-
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 constraints
* 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
-
refresh_on_execute()[source]
This is the call back function that happens when code is executed in the
ipython kernel. The main purpose of this right now it to refresh the
UI display so that it matches the current state of the model.
-
update_model()[source]
Play it safe by restarting all the tree view widgets when the model updates