The source code* of the S-functions is compiled using GNU GCC 4.8.4 running on a Linux-based 64-bit operating system. A special S-function requires to be linked to libfreesteam† (freesteam 2.1) to correctly model heat transfer from the steam. The optimization task comprises identifying a plant steady-state, linearizing the process model around it, and statically optimizing the process by calling Matlab linprog() function. The whole optimization routine is implemented as a Matlab script. All computations are performed running MATLAB R2014a on an Intel Core i7-4800MQ 2.7 GHz CPU