and there is no overflow in the tank h<600mm
within the following time interval 25s<t<100s.
which is solved by the following query, whose set of
solutions is over 200.
| ?- findall((KP,KI),sim(KP,KI,_),LS).
LS = [(25,2),(26,2),(27,2),(30,3),...]
where sim(KP,KI,ERR TOTAL) is a predicate
that calculates the tracking error of the closed loop
system with gains K
i
and K
p
.
An optimal parameterisation is obtained with a in-
creasing error ordered list
| ?- setof(ET-(KP,KI),sim(KP,KI,ET),LSO).
LSO = [3330-(75,10),3337-(74,10),....]
resulting in the optimal gains K
i
=10and K
p
=75.
4 CONCLUSIONS AND FUTURE
WORK
A declarative approach to control problems that ap-
plies to a class of processes described by numerical
and logical relations using inference and a knowledge
base system as been presented. Logic programming
with constraints has been applied. The followed ap-
proach makes possible not only to represent the con-
trol system in declarative way but also to query the
knowledge base system using the same declarative
language. The complete system is described using
the same description language no matter we are deal-
ing with logical or numerical variables. A further step
in the research will be to explore constraint logic pro-
gramming using other solvers that cope with real vari-
ables (positive or negative) possibly using mixed inte-
ger quadratic optimisation and compare the precision
gains versus the computational complexity increase.
Another problem that should be carefully analysed,
in the presence of quantisation, is the propagation of
quantisation error across the inference process.
REFERENCES
˚
Astr
¨
om, K. and Wittenmark, B. (1997). Computer Con-
trolled Systems. Prentice-Hall.
Bemporad, A. and Morari, M. (1999). Control of systems
integrating logic, dynamics, and constraints. Automat-
ica.
Diaz, D. and Codognet, P. (2000). The gnu prolog sys-
tem and its implementation. In ACM Symposium on
Applied Computing-SAC, Villa Olmo, Como, Italy.
ACM.
Elmqvist, H., Mattson, S., Otter, M., and Astrm, K. (2001).
Modeling complex systems. In Astrm, K., Albertos,
P., Isidori, A., Schaufelberger, W., and Sanz, R., edi-
tors, Control of Complex Systems, chapter 2. Springer.
Knuth, D. (1997). The Art of Computer Programming -
Seminumerical Algorithms. Addison-Wesley.
Lunze, J., Askari-Marnani, J., Cela, A., Rato, L., Lemos,
J., and Staroswiecki, M. (2001). Three-tank control
reconfiguration. In Astrm, K., Albertos, P., Isidori,
A., Schaufelberger, W., and Sanz, R., editors, Control
of Complex Systems, chapter 2. Springer.
Messina, E. R., Evans, J. M., and Albus, J. S. (2001). Eval-
uating knowledge and representation for intelligent
control. In 2001 PerMIS Workshop, Mexico.
Rato, L. and Lemos, J. M. (1999). Multimodel based fault
tolerant control of the 3-tank system. In Proceedings
of European Control Conference ECC99, Karlsruhe,
Germany.
Shadbolt, N. R., Robinson, B. D., and Stobart, R. K. (1989).
knowledge represebtation for closed loop control. In
SIGART: ACM Special interest group on AI.ACM
Press.
Sterling, L. and Shapiro, E. (1997). The Art of Prolog. MIT
Press.
Zagar, K., Plesko, M., G.Tkacik, and Vodovnnik, A.
(2001). The control system modelling language. In
ICALEPCS-2002, San Jose CA.
ICINCO 2005 - INTELLIGENT CONTROL SYSTEMS AND OPTIMIZATION
118