From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Optimizing a selection problem
Date: Sat, 9 Oct 2010 17:57:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <i8qadf$64o$>
References: <i8p0oc$fbe$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1286647023 6296 (9 Oct 2010 17:57:03 GMT)
NNTP-Posting-Date: Sat, 9 Oct 2010 17:57:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:677124

"Jordan " <> wrote in message <i8p0oc$fbe$>...
> .......
> Can anyone point me towards an appropriate function or algorithm? 
> .......

  One more incomplete thought.  I think I see a correspondence between this problem and the famous (infamous) traveling salesman problem which is known to be NP-hard.  If that is so, you have posed a computational very difficult problem.  What exactly is your idea of a criterion for choosing between two different pairings among the sets - a least sum of squares of some sort?

Roger Stafford