This is a code for island detection when a major disturbance occurs. Main aim of the algorithm should be to reduce as much difference in the generation-load (sums of weights in islands)
python sample.py
python island.py