Help in programming

2 visualizaciones (últimos 30 días)
Nuno
Nuno el 13 de Jul. de 2011
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?

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 13 de Jul. de 2011
This is typical when you have this bang-bang like control. You can use the Relay block to implement a upper and lower limit.

Más respuestas (0)

Categorías

Más información sobre Instrument Control Toolbox Supported Hardware en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by