A system or approach for identifying mean value models with a set of equations and appropriate constraints which define the model validity. A model may be used to design an algorithm for an engine system, collecting sensed data, optimizing control parameters based on the models and data, and providing control of the engine system. These processed may be reiterated for updating control of the engine system.