Discrete optimal control with multiple constraints II The batch crystallisation of sugar