필터 지우기
필터 지우기

Problems with integrator with external initial conditions

조회 수: 2 (최근 30일)
Andrea Gollner
Andrea Gollner 2017년 7월 11일
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?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by