Retrospective and predictive optimal scheduling of nitrogen liquefier units and the effect of renewable generation