Help in programming

I have a programming problem... I implement a model and in this model i read the SOC value to off the battery's charger when SOC>0,9... When SOC<0,9 the battery's charge. The problem is when this appened, the simulation slows because fluctuate between 0.89 and 0.91... how do I get after being greater than 0.9 only charger again when SOC=0.85 for exemple?

 채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 7월 13일

0 개 추천

This is typical when you have this bang-bang like control. You can use the Relay block to implement a upper and lower limit.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Embedded Coder에 대해 자세히 알아보기

제품

질문:

2011년 7월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by