A novel
simultaneous optimization and control algorithm, referred
to as batch simultaneous model-based optimization and control (BSMBO&C),
is proposed in this paper. It is designed to optimize the performance
of batch and semibatch systems, including the batch cycle duration
as well as providing the process control at the same time. The algorithm
structure is described in detail along with the adopted implementation
logic. Its coding is addressed exploiting a very efficient numerical
library, based on object-oriented programming and parallel computing,
in order to achieve a tool that is able to run online. A performance
comparison of BSMBO&C as opposed to the most common existing options
and its own potential are investigated by means of two ad-hoc test
cases. In these case studies a semibatch reactor is employed as a
reference system.