We demonstrate how to plan offset of connectivity loss in rivers derived from the construction of new barriers,
by using the Tagus River (Iberian Peninsula) as a model. We simulate the construction of new barriers, measure
the impact they would have on connectivity for each species individually, and identify an optimal set of existing
barriers that should be removed to counterbalance the loss of connectivity caused for all species collectively.