Hi, At the moment, I have an algorithm that tries to link a contract to another -> group A links to group B. I need to store relations CTR(A) matches with CTR(B). Software starts trying to match by client fiscal code and proceeds selecting the best link possible (using a score). Next iterations do the same with unlinked contracts still available: now it is not using the client fiscal code but the one of people listed as 'friend' within the contract. Until now I considered checking only friends in scope of contracts being part of group A, CTR(A). Every CTR has its unique 'friends'. So, for every contract there will be max 6 people in total considered by this logic. They ask me to keep trying, if contracts aren't linked yet, matching with 'friends' of contracts in set B, CTR(B). Here comes my question. I thought of creating a dataset matrix containing all possible links within sets. When I choose a link though, I need to remove every other occurrence of chosen CTR it in my matrix. If I link contract A1 to contract B1 I need to delete every row containing one or the other. Just to be clear, when I decide a link in my code I need to remove every 'what if' scenario not any more plausible. Is it possible to do something like that within just one data step? Do you have any similar experience? I want to avoid cycling too much if possible.
... View more