I have a regular grid of cells, maybe square, maybe hexagonal.
Each cell has a numeric value associated with it.
How can I find a subset of cells that are:
- a connected, compact set and
- have an optimally high sum of values and
- made of a number n cells
using OR methods or models?