This question is an extension of this.
Again, I have n total fruit plantations and s number of just apple plantations.
I want to place s and (n-s) plantations on an m by m grid of field. Each s apple plantation should be a minimum distance, d away from each other. So each grid point has two possibilities: multiple (n-s) plantations or 1 s plantation and multiple (n-s) plantations.
The objective function should be minimizing the area of the grid field where n fruits are to be planted.
Also, I need to control the number of total plantations/grid points. That means for the two possibilities mentioned above, I might place multiple plantations on the same grid point.
New additional constraints:
- All calculations in Manhattan distance i.e. |x1-x2|+|y1-y2|
- This time the area calculation is approximated simply as [y2-y1]+[x2-x1] as a proxy for actual area, where y2 = max(all n plantations' y) , y1 = min(all n plantations' y), same for x2 and x1.
- For the distance constraint for s plantations, I am thinking |ai1,j1 - ai2,j2| >=d. But I need to generalize this for all plantations.
- Lastly, with another variable, I need to be able to control the number of total plantations/grid points.
Please help.
Also, I need to control the number of total plantations/grid points. E.g. maybe a binary variable will say if there are say 10, just for instance plantations in each grid point.
– Sep 04 '20 at 15:06Also x1 - i < (m-i) (1-f _i_j) for all i , j .........x1 is the lower left corner of the grid... what is i? I understand this is saying choose the 'i's paying for it in the f_i_j but it would be helpful to see a boundary condition.
– Sep 08 '20 at 17:36I understand our objective function changed.
– Sep 08 '20 at 22:21