Borrar filtros
Borrar filtros

Problems with integrator with external initial conditions

2 visualizaciones (últimos 30 días)
Andrea Gollner
Andrea Gollner el 11 de Jul. de 2017
Channgin from Matlabe version 2009a to 2014a I detected that the real time code of the integrator block with external initial condition seems to have changed. I generate a model library in Windows which I use to solve an optimization problem. One of the optimization variable is an integrator with external initial condition. In Matlab version 2009a the optimization problem could be solved because the integrator state could be overwritten and used optimization variable. In Matlab version 2014a the optimization does not work any longer because the state does not change. Changing the integrator initial condition from external to internal initial conditon solves the optimization problem correctly BUT the overall model behaviour is not what I want.
Is there a nicer way to solve the problem than to introduce a switch where I differ between 'normal' model run and optimization run?

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by