The main objective of this paper is to develop a nonlinear planning model f
or refinery production. The model described here represents a general petro
leum refinery and its framework allows the implementation of nonlinear proc
ess models as well as blending relations. This model assumes the existence
of several processing units, producing a variety of intermediate streams, w
ith different properties, that can be blended to constitute the desired kin
ds of products. Two real-world applications are developed, one for the plan
ning of diesel production in the RPBC refinery in Cubatao (SP) and the othe
r for the general production planning in the REVAP refinery in S. Jose dos
Campos (SP). In both cases, different market scenarios were analyzed using
the planning optimization and the results were compared with the current si
tuation, in which there is no extensive use of planning decision support to
ols. Results revealed that there is a very large potential of profitability
embedded in the planning activity, reaching several millions of dollars pe
r year.