13.07.2015 Views

Assessment and Future Directions of Nonlinear Model Predictive ...

Assessment and Future Directions of Nonlinear Model Predictive ...

Assessment and Future Directions of Nonlinear Model Predictive ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

234 A. Romanenko <strong>and</strong> L.O. Santosdiagonal matrix K I determines the speed <strong>of</strong> the response <strong>of</strong> the integrator element.This feature requires an appropriate extension <strong>of</strong> the formulation (3-11).A detailed description <strong>of</strong> the derivation <strong>of</strong> the multiple shooting approach usingintegral action is presented in [23].The control problem formulation is presently implemented in a computationalframework (newcon) coded into Fortran <strong>and</strong> C ++ .Thenewcon code featuressetup flags to be defined by the user such that the following features are optional:output terminal constraints, integral action, constraint relaxation (exactor quadratic penalty), <strong>and</strong> control move rate constraints.2.2 ODE <strong>and</strong> QP SolversFor the core elements <strong>of</strong> the newcon framework, the ODE solver with sensitivityanalysis capabilities <strong>and</strong> the optimizer, we use highly efficient third partylibraries developed as open-source <strong>and</strong> free s<strong>of</strong>tware.The integration <strong>of</strong> (1) to perform the predictions <strong>and</strong> to obtain sensitivityinformation is done using the code cvodes [11]. The code cvodes is a solverfor stiff <strong>and</strong> nonstiff initial value problems for systems <strong>of</strong> ordinary differentialequations. It has forward <strong>and</strong> adjoint sensitivity analysis capabilities. cvodesis part <strong>of</strong> a s<strong>of</strong>tware family called sundials: SUite <strong>of</strong> <strong>Nonlinear</strong> <strong>and</strong> DIfferential/ALgebraicequation Solvers. It is noteworthy, that sundials is built upongeneric vectors. The suite provides a serial vector implementation as well as aparallel one based on Message Passing Interface (MPI) communication protocol.A more detailed description <strong>of</strong> this code can be found in [11].The resulting nonlinear programming problem (3–11) is solved using a successivequadratic programming (SQP) method with a line search algorithm basedupon a procedure by [1]. Here the Quadratic Programming (QP) problem issolved at every iteration using a quadratic programming solver code taken fromthe SQP-type solver HQP for large-scale optimization problems. A more detaileddescription <strong>of</strong> this optimizer can be found in [9].3 Illustrative <strong>Nonlinear</strong> ExampleTo illustrate the application <strong>of</strong> newcon we consider the simulation <strong>of</strong> a continuouspilot reactor where an exothermic zero-order reaction, A → B, occurs. Thisnonlinear example is taken from [23, 24], <strong>and</strong> a brief summary <strong>of</strong> the mathematicalmodel is provided here. The total reactor mass balance givesdVdt = F 0 − F, (13)where V is the reactor liquid volume, F 0 is the inlet flow <strong>and</strong> F is the outletflow. The mass balance to the reactant A is given bydC Adt= F 0V (C A0 − C A ) − k 0 e −Ea/(R Tr) . (14)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!