This web app about the hub location problem and the course Problema de localización de concentradores y el curso Localización de concentradores o hubs 21-22 have been developed as part of the Programación Matemática course lectured at Universidad de Cádiz

The app starts from a node list, the number of packages to send between those nodes, the cost of those pacakges, the number of hubs and three different types of discount factors.


At your left you will find a panel where you can execute the permitted actions of the app. Choose an options and press the button Do to execute it.

1. How to load an example

To load one of the examples given by the app, choose Load Example.

Once the example is loaded, you can see the result in the Results tab, and in the Graphics tab you will see in blue the hubs and in white the nodes assigned to the hubs

2. Modify an example

When modifiyng columns, be careful with, erasing the discount factors.

Individual cells may be modified too.

The graph must be complete, so there must be the same number of rows and columns, and the nodes (i,i) must have matching names.

3. Creating an example

An example may be made through editing cells, rows and columns, but a .csv file may be used for creating them.


  • Professor: Manuel Muñoz Márquez (

  • Students:

    • Isaac Guzmán Maya (
    • Fidel Ricardo Solís Aguilar (
    • Inmaculada San José García (
    • Alejandro Antonio Alba Varo. (

    This application has been developed from the skeleton application made with shiny by M. Muñoz-Márquez under GNU-GPL license as part of the R-UCA Project.