Hi there, I have an optimization problem where i need to select the observations in pairwise based on certain criteria. The problem is discussed in-detail as shown below: for suppose we have following data: property_code state value 53012 CA 500000 98432 FL 200000 32763 GA 300000 34534 CA 198000 12432 FL 650000 65851 MN 200000 85563 FL 499000 54632 CA 645000 65726 UT 100000 Using the optimization technique we have to select pair-wise records from above data, one property from CA and one property from FL such that the difference in their respective values is almost the same or below certain tolerance. For suppose we want to take 2 pairs out of above data: Optimizer has to output: property_code state value 53012 CA 500000 85563 FL 499000 34534 CA 198000 98432 FL 200000 i.e It selected one from CA worth 500000 and then selected a near one from FL worth 499000, and similarly it pulled second pair as shown above. Can anybody let me know how to put this as a constraint or a objective function. Thank you for you help in advance!
... View more