Tutorial 5: Surrogates with the Flowsheet

This section provides a brief tutorial for using the flowsheet plugin models generated by surrogate modeling methods. In a future FOQUS release all surrogate modeling methods will produce a model that can be run in a FOQUS flowsheet. Currently iREVEAL (part of the CCSI Toolset) does not produce a flowsheet model.

Before doing this tutorial complete the ALAMO tutorial in Section :ref:`sec.surrogate.alamo`.

  1. Open FOQUS. If FOQUS has not been closed since completing the ALAMO tutorial, close it and reopen it. There is a known issue where existing flowsheet model plugins may not update until FOQUS is restarted.

  2. Enter “FS_Plugin_Tutorial” as the Session Name.

  3. Click the Flowsheet button from the Home window.

  4. Click the Add Node icon in the left toolbar (see Figure Plugin Flowsheet).

  5. Click a location for the node in the Flowsheet area.

  6. Enter “model” for the node name (without quotes).

  7. Click the Node Editor icon in the left toolbar (see Figure Plugin Flowsheet).

  8. In the Node Editor, select “Plugin” from the Model Type drop-down list.

  9. Select “ALAMO_Tutorial_FS” from the Model drop-down list.

  10. Set the Value of the Input Variables “eq.x1” to 2.

  11. Set the Value of the Input Variables “eq.x2” to 3.

  12. Click the Run icon in the left toolbar (see Figure Plugin Flowsheet).

  13. Wait for the Flowsheet evaluation to complete. It should finish successfully.

  14. Check the value of the Output Variables; the approximate values should be z1 = 5 and z2 = 13.

Plugin Flowsheet

Plugin Flowsheet