Numerical integration of the ERROR in a PI controller

AI Thread Summary
The discussion centers on the implementation of a PI controller in a Fortran77 program for a binary distillation column, specifically focusing on the numerical integration of the error term. The user has employed the explicit Euler method for this purpose and seeks alternative methods for comparison. It is noted that while various numerical integration algorithms exist, the choice of method in a PI controller is not critical, as the primary goal is to ensure that the integral term increases in response to sustained error. The integration does not need to be highly accurate, as the system is forgiving of errors. The integral value is often scaled by a constant to achieve the desired dynamic response in the control system.
pid3control
Messages
2
Reaction score
0
good day all.i've just written a program in fortran77 for the model of a binary distillation column.i included a PI controller in my program.To obtain the integral term of the PI,I used the explicit euler to numerically integrate the error.i would love to compare my results using another method to numerically integrate the error.but I'm confused.the euler method was quite simple.i defined ERINT as the integral of the error (∫E).and since E(i.e the error) is the derivative of the integral i simply employed euler to solved the resulting ODE.That is,

ERINT(n+1)=ERINT(n) + TE(n) where T is the step size

please which other method simple can i use to obtain the integral term.can i also see simple chemical processes (in fortran77) where they are applied in a PI controller it obtain the integral term? please an answer would be greatly appreciated.many thanks
 
Last edited by a moderator:
Technology news on Phys.org
There are many algorithms for numerical integration. But there is no justification for them in a PI controller. You are not integrating a specific differential equation. You are not predicting position by integrating velocity. All you want is some function that forces E(n) to zero in the steady state. It doesn't matter whether it is a pure or an accurate integration.
https://en.wikipedia.org/wiki/Numerical_integration
 
The use of an integral in a PI feedback system is very forgiving of any errors in the integration (and of many other errors for that matter). The only real requirement is that the integral value will increase if there is a sustained error. In fact, the value of the integrator is usually multiplied by a constant before it is used. That is done to give the system the desired dynamic response.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
5
Views
3K
Replies
15
Views
3K
Replies
1
Views
3K
Replies
13
Views
2K
Replies
1
Views
1K
Replies
4
Views
6K
Back
Top