PID controller

Use this forum to post Vensim related questions.
Post Reply
Nabil
Junior Member
Posts: 6
Joined: Mon Aug 11, 2008 9:17 pm

PID controller

Post by Nabil »

Hi
Is it possible to build a PID controller with vensim, that is how to differentiate and integrate the the difference terms?
Regards

Nabil
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Differentiation is always a sampling process, especially in real implementations. Generally the most sensible way to do differentiation in a Vensim model is to use

time derivative = (variable of interest - delayed variable of interest) / sampling interval
delayed variable of interest = INTEG((variable of interest - delayed variable of interest)/sampling interval,variable of interest)

Where sampling interval is bigger than TIME STEP (usually > 2*TIME STEP if it is not simply TIME STEP).
Nabil
Junior Member
Posts: 6
Joined: Mon Aug 11, 2008 9:17 pm

Post by Nabil »

Thank you
Nabil
Post Reply