Text this: Optimal control model and solution of seasonal production and inventory problem