For joint venture refineries, the contractual supply and offtake of crude and products by each of the joint venture partners forms an additional complicating factor for running operation at its economic optimum as calculated by LP Models. Hans Hartmann, an independent consultant with extensive experience in LP modelling and interpretation, explains how the output of these same LP models can be used to check for a sub-optimal operating mode of the refinery.