I am doing some modelling where I am trying to randomly layout some points on a grid. What I know:
- How big the grid is
- The number of objects that have to be laid out on the grid, at a point
- The minimum distance between one point to another
- The distance between points on a grid
I am reasonably certain that the constraints that I have will not produce a correct result, but without either calculating that isn't possible through iteration or some other means, I don't think I can prove this.
I have code which solves this given certain constraints, but I'm trying to figure out a way where I can calculate the number of possibilities (if any) for some given constraints, or if indeed, the given constraints have no solution.
My code currently keeps trying random points within the grid until either a valid set of points are found, or there are no more points to try.
Thanks for your help.
