Scaling of optimal control problems are best done after they are defined. The level of the cost function, variables, states and controls should be balanced around 1.
batchFermentor.m exemplifies a very basic way of scaling an optimal control problem.