Title: A contribution to the implementation of adaptive optimal operation for discontinuous chemical reactors