A novel unified approach to two-degrees-of-freedom control is devised and applied to a classical chemical reactor model. The scheme is constructed from the optimal control point of view and along the lines of the Hamiltonian formalism for nonlinear processes. The proposed scheme optimizes both the feedforward and the feedback components of the control variable with respect to the same cost objective. The original Hamiltonian function governs the feedforward dynamics, and its derivatives are part of the gain for the feedback component. The optimal state trajectory is generated online, and is tracked by a combination of deterministic and stochastic optimal tools. The relevant numerical data to manipulate all stages come from a unique off-line calculation, which provides design information for a whole family of related control problems. This is possible because a new set of PDEs (the variational equations) allow to recover the initial value of the costate variable, and the Hamilton equations can then be solved as an initial-value problem. Perturbations from the optimal trajectory are abated through an optimal state estimator and a deterministic regulator with a generalized Riccati gain. Both gains are updated online, starting with initial values extracted from the solution to the variational equations. The control strategy is particularly useful in driving nonlinear processes from an equilibrium point to an arbitrary target in a finite-horizon optimization context. Figure 1. Two-degrees-of-freedom control design.involve changes in the final equilibrium value of the manipulated variable (a parameter whose value may have been optimized a priori). These types of behavior present severe operation problems and demonstrate the need for feedback control, particularly when the process is open-loop unstable or when it exhibits nonlinear oscillations [4]. Other common process characteristics that cause control difficulty for nonlinear systems are multivariable interaction between manipulated and controlled variables, unmeasured states and frequent disturbances in the input-output signals [5].Chemical reactors are usual classical examples in the nonlinear control literature ([2, 6-8], and their references). Several nonlinear advanced techniques have been developed (and these can be consulted in an extensive survey done by Bequette [5]), where the resulting controls were either linear or nonlinear. It is clear that nonlinear control in CSTR becomes more important if set-point changes are made, since significant departures from equilibrium are most probable to occur. Other (not necessarily equilibrium) points may be desirable to achieve, as it happens in batch processes. In such situations, both the nominal trajectory and its tracking must be optimized until a stop condition is reached in a finite time.Apart from heuristic methods, there is a range of model-based approaches such as Model Predictive Control (MPC), which is becoming the most widely quoted in the recent literature. This method is essentially numerical, usually impl...