I found this video extremely helpful to determine the floorplanning constraints.
The first two constraints (i) make sure the modules are within the feasible floorplan; the subsequent four constraints (ii) make sure that no two modules overlap, and the last constraint (iii) describes all the modules in the first quadrant.
My goal is a bit different- I am not sure if just the mentioned constraints can be modified for this purpose. Basically for area minimization- each module is divided into 4 sections (1, 2, 3, 4 in the picture) and specific portions of the sections (labeled red) need to be a minimum distance, D away from other modules' red portions as shown in the example on the left. For example, portions 2, and 4 of a module need to be D away from other modules 2, and 4 portions. In this way, some more floorplan areas can be minimized compared to doing it with the whole modules (shown on the right).
Any advice on the modification of the (i, ii, iii) constraints in order to achieve my goal would be helpful.
The constraints cannot be modified in the manner you suggest. You are trying to include a distance constraint based on the L2-norm (Euclidean distance) between specific points of modules. The expression for the distance between two points is a nonlinear function of the decision variables. This cannot be expressed in the form of a linear constraint, even when you allow for integer decision variables.
You have a number of options: