Skip to main content
Log in

An approach from answer set programming to decision making in a railway interlocking system

  • Original Paper
  • Published:
Revista de la Real Academia de Ciencias Exactas, Fisicas y Naturales. Serie A. Matematicas Aims and scope Submit manuscript

Abstract

Railway interlocking systems are apparatuses that prevent conflicting movements of trains through an arrangement of tracks. A railway interlocking system takes into consideration the position of the switches (of the turnouts) and only allows trains to be given clear signals if the routes to be used by the trains are disjoint. There are many different approaches to automate decision making in railway interlocking systems (i.e., to automate supervising that the proposed situation is safe). Meanwhile the classic approaches are offline: only certain routes are allowed and their compatibility is decided in advance, our approaches take the decision on real time, so performance is key. We had previously developed Maple implementations of models based on matrix, algebraic (Gröbner bases), logic and logic–algebraic approaches. They are independent from the topology of the layout and can be applied to small or medium size layouts. In this paper another completely new model (also independent from the topology of the layout), that directly translates the decision problem into logic programming, is presented. This new approach directly translates the problem in answer set programming (ASP) style, by defining relations and derived relations, from which the problem is solved using logic techniques inherent to ASP. The main procedure analyses the safety of a proposed situation and an auxiliary procedure returns, if they exist, the sections where a collision could take place. This declarative approach turns out to be much faster and efficient than the previous ones by these authors, and therefore can be applied to much bigger layouts.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

References

  1. Anonymous: Proyecto y obra del enclavamiento electrónico de la estación de Madrid-Atocha. Proyecto Técnico. Siemens, Madrid (1988)

  2. Anonymous: Microcomputer Interlocking Hilversum. Siemens, Munich (1988)

  3. Anonymous: Microcomputer Interlocking Rotterdam. Siemens, Munich (1989)

  4. Anonymous: Puesto de enclavamiento con microcomputadoras de la estación de Chiasso de los SBB. Siemens, Munich (1989)

  5. Bayer, D.: The division algorithm and the Hilbert scheme (Ph.D. Thesis). Harvard University, Cambridge (1982)

  6. Bjørner, D.: The FMERail/TRain Annotated Rail Bibliography (2005). http://www2.imm.dtu.dk/~db/fmerail/fmerail/. Accessed 9 July 2013

  7. Borälv, A.: Case study: formal verification of a computerized railway interlocking. Form. Asp. Comput. 10, 338–360 (1998)

    Article  MATH  Google Scholar 

  8. Brewka, G., Eiter, T., Truszczyński, M.: Answer set programming at a glance. Commun. ACM 54(12), 93–103 (2011)

    Article  Google Scholar 

  9. Buchberger, B.: Bruno Buchberger’s PhD thesis 1965: an algorithm for finding the basis elementals of the residue class ring of a zero dimensional polynomial ideal. J. Symb. Comput. 41(3–4), 475–511 (2006)

  10. Cox, D., Little, J., O’Shea, D.: Ideals, Varieties and Algorithms. Springer, Berlin (1992)

    Book  MATH  Google Scholar 

  11. Ferrari, A., Magnani, G., Grasso, D., Fantechi, A.: Model checking interlocking control tables. In: Schnieder, E., Tarnai, G. (eds.) Proceedings of Formal Methods for Automation and Safety in Railway and Automotive Systems FORMS/FORMAT 2010, pp. 107–115. Springer, Berlin (2011)

    Google Scholar 

  12. Gelfond, M.: Answer sets. In: van Harmelen, F., Lifschitz, V., Porter, B. (eds.) Handbook of Knowledge Representation, pp. 285–316. Elsevier, Amsterdam (2008)

    Chapter  Google Scholar 

  13. Gelfond, M., Lifschitz, V.: The stable model semantics for logic programming. In: Proceedings of the Fifth International Conference on Logic Programming, pp. 1070–1080. ICLP-88. MIT Press, Cambridge (1988)

  14. Hansen, K.M.: Formalising Railway Interlocking Systems. Nordic Seminar on Dependable Computing Systems, pp. 83–94. Department of Computer Science, Technical University of Denmark, Lyngby (1994)

  15. Haxthausen, A.E., Peleska, J., Kinder, S.: A formal approach for the construction and verification of railway control systems. Form. Asp. Comput. 23, 191–219 (2009)

    Article  Google Scholar 

  16. Haxthausen, A.E.: Automated generation of safety requirements from railway interlocking tables. In: Margaria, T., Steffen, B. (eds.) ISoLA 2012, Part II, vol. 7610, pp. 261–275. LNCS. Springer, Berlin (2012)

  17. Hernando, A., Roanes-Lozano, E., Maestre-Martínez, R., Tejedor, J.: A logic–algebraic approach to decision taking in a railway interlocking system. Ann. Math. Artif. Intell. 65, 317–328 (2012). doi:10.1007/s10472-012-9321-y

    Article  MATH  MathSciNet  Google Scholar 

  18. Hidalgo-Doblado, M.J., Alonso-Jiménez, J.A., Borrego-Díaz, J., Martín-Mateos, F.J., Ruiz-Reina, J.L.: Formally verified tableau-based reasoners for a description logic. J. Autom. Reason. (2013). doi:10.1007/s10817-013-9291-8

  19. Janota, A.: Using Z Specification for Railway Interlocking Safety. Periodica Polytechnica Ser. Trans. Eng. 28(1–2), 39–53 (2000)

    Google Scholar 

  20. Lifschitz, V.: What is answer set programming? In: Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence, pp. 1594–1597. AAAI 2008. AAAI Press, Menlo Park (2008)

  21. Losada, M.: Curso de Ferrocarriles: Explotación Técnica. E.T.S.I. Caminos, Madrid (1991)

    Google Scholar 

  22. Martín-Mateos, F.J., Alonso-Jiménez, J.A., Hidalgo, M.J., Ruiz-Reina, J.L.: Formal verification of a generic framework to synthesize SAT-provers. J. Autom. Reason. 32(4), 287–313 (2004)

    Article  MATH  Google Scholar 

  23. Montigel, M.: Modellierung und Gewährleistung von Abhängigkeiten in Eisenbahnsicherungsanlagen (Ph.D. Thesis). ETH Zurich, Zurich (1994)

  24. Morley, M.J.: Modelling British Rail’s interlocking logic: geographic data correctness. Technical Report ECS-LFCS-91-186. Laboratory for Foundations of Computer Science, Department of Computer Science, University of Edinburgh (1991)

  25. Nakamatsu, K., Kiuchi, Y., Suzuki, A.: EVALPSN Based railway interlocking simulator. In: Negoita, M.Gh, et al. (eds.) Knowledge-Based Intelligent Information and Engineering Systems. LNAI, vol. 3214, pp. 961–967. Springer, Berlin (2004)

  26. Niemelä, I.: Logic programs with stable model semantics as a constraint programming paradigm. Ann. Math. Artif. Intell. 25(3–4), 241–273 (1999)

    Article  MATH  Google Scholar 

  27. Niemelä, I., Simons, P.: Smodels–an implementation of the stable model and well-founded semantics for normal logic programs. In: Proceedings of the 4th International Conference on Logic Programming and Nonmonotonic Reasoning, pp. 420–429. LNAI, vol. 1265. Springer, Berlin (1997)

  28. PolyBoRi web page. http://polybori.sourceforge.net/. Accessed 9 July 2013

  29. Ricca, F., Grasso, G., Alviano, M., Manna, M., Lio, V., Liritano, S., Leone, N.: Team-building with answer set programming in the Gioia-Tauro seaport. Theory Pract. Log. Program. 12(03), 361–381 (2012)

    Article  MATH  MathSciNet  Google Scholar 

  30. Roanes-Lozano, E., Laita, L.M.: An applicable topology-independent model for railway interlocking systems. Math. Comput. Simul. 45(1), 175–184 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  31. Roanes-Lozano, E., Laita, L.M., Roanes-Macías, E.: An application of an AI methodology to railway interlocking systems using computer algebra. In: Pasqual del Pobil, A., Mira, J., Ali, M. (eds.) Tasks and Methods in Applied Artificial Intelligence, Proceedings of IEA-98-AIE, vol. II. LNAI, vol. 1416, pp. 687–696. Springer, Berlin (1998)

  32. Roanes-Lozano, E., Roanes-Macías, E., Laita, L.M.: Railway interlocking systems and Gröbner bases. Math. Comput. Simul. 51(5), 473–481 (2000)

    Article  Google Scholar 

  33. Roanes-Lozano, E., Muga, R., Laita, L.M., Roanes-Macías, E.: A terminal area topology-independent GB-based conflict detection system for A-SMGCS. Rev. R. Acad. Cienc. Exactas Fís. Nat., Serie A Mat. RACSAM 98(1–2), 229–237 (2005)

    Google Scholar 

  34. Roanes-Lozano, E., Hernando, A., Alonso, J.A., Laita, L.M.: A logic approach to decision taking in a railway interlocking system using Maple. Math. Comput. Simul. 82(1), 15–28 (2011). doi:10.1016/j.matcom.2010.05.024

    Article  MATH  MathSciNet  Google Scholar 

  35. Roanes-Lozano, E., Laita, L.M., Hernando, A., Roanes-Macías, E.: An algebraic approach to rule based expert systems. Rev. R. Acad. Cienc. Exactas Fís. Nat., Serie A Mat. RACSAM 104(1), 19–40 (2011). doi:10.5052/RACSAM.2010.04

    Google Scholar 

  36. Simons, P.: Extending and Implementing the Stable Model Semantics (Ph.D. Thesis). Research Report 58, Helsinki University of Technology, Helsinki (2000)

  37. Smodels web page. http://www.tcs.hut.fi/Software/smodels/. Accesed 9 July 2013

  38. Villamandos, L.: Sistema informático concebido por Renfe para diseñar los enclavamientos. Vía Libre 348, 65 (1993)

    Google Scholar 

  39. Winter, K., Robinson, N.J.: Modelling large interlocking systems and model checking small ones. In: Oudshoorn, M. (ed.) 26th Australasian Computer Science Conference (ACSC 2003). Australian Computer Science Communications, vol. 16 (2003)

  40. Winter, K., Johnston, W., Robinson, P., Strooper, P., van den Berg, L.: Tool support for checking railway interlocking designs. In: Cant, T. (ed.) Proceedings of the 10th Australian Workshop on Safety Related Programmable Systems, pp. 101–107. Australian Computer Society Inc., Sydney (2006)

    Google Scholar 

  41. Xiangxian, C., Hai, H., Yulin, H.: Automatic generation of relay logic for interlocking system based on statecharts. In: 2010 Second WRI World Congress on Software Engineering WCSE, vol, 2, pp. 183–188. IEEE, Los Alamitos (2010)

  42. Xiangxian, C., Yulin, H., Hai, H.: An approach to automatic development of interlocking logic based on Statechart. Enterp. Inf. Syst. 5(3), 273–286 (2010)

    Google Scholar 

  43. Xiangxian, C., Yulin, H., Hai, H.: A component-based topology model for railway interlocking systems. Math. Comput. Simul. 81(9), 1892–1900 (2011)

    Article  Google Scholar 

Download references

Acknowledgments

We would like to thank the reviewers for their most valuable comments and suggestions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Eugenio Roanes-Lozano.

Additional information

This work was partially supported by the research projects TIN2012-32482 (Government of Spain) and TIC-06064 (Junta de Andalucía, co-financed with FEDER founds).

Appendix

Appendix

figure e
figure f

Rights and permissions

Reprints and permissions

About this article

Cite this article

Roanes-Lozano, E., Alonso, J.A. & Hernando, A. An approach from answer set programming to decision making in a railway interlocking system. RACSAM 108, 973–987 (2014). https://doi.org/10.1007/s13398-013-0155-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s13398-013-0155-1

Keywords

Mathematics Subject Classification (2000)

Navigation