Text this: Extended optimal stochastic production control model with application to economics