X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C53E4D868B for ; Thu, 13 Oct 2005 10:02:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85064-09 for ; Thu, 13 Oct 2005 13:02:13 +0000 (GMT) Received: from svr2.postgresql.org (svr2.postgresql.org [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id 83B6BD863C for ; Thu, 13 Oct 2005 10:02:15 -0300 (ADT) Received: from website.brandywine.com (mailcheck.brandywine.com [146.145.113.9]) by svr2.postgresql.org (Postfix) with ESMTP id 91004F0CAF for ; Thu, 13 Oct 2005 13:50:55 +0100 (BST) X-eSCM-MailFrom: Received: from BAM_EXCHANGE (10.1.0.100) by website.brandywine.com (10.1.0.9); Thu, 13 October 2005 09:05:28 -0400 Received: from [10.1.0.60] (gen-wayne [10.1.0.60]) by bam_exchange.brandywine.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id R6ZYYCPY; Thu, 13 Oct 2005 09:02:12 -0400 Message-ID: <434E5B44.7080204@brandywine.com> Date: Thu, 13 Oct 2005 09:04:04 -0400 From: Daryl Richter Reply-To: daryl@brandywine.com Organization: Brandywine Asset Management User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: SEVEN cross joins?!?!? References: <434CE6B8.5060106@archonet.com> <5.2.1.1.0.20051011071510.0364d850@pop6.sympatico.ca> <5.2.1.1.0.20051011071510.0364d850@pop6.sympatico.ca> <5.2.1.1.0.20051011145705.00a31440@pop6.sympatico.ca> <434CE6B8.5060106@archonet.com> <5.2.1.1.0.20051012211223.00a34dd0@pop6.sympatico.ca> In-Reply-To: <5.2.1.1.0.20051012211223.00a34dd0@pop6.sympatico.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.459 required=5 tests=[AWL=-0.398, MANY_EXCLAMATIONS=0, PLING_QUERY=0.857] X-Spam-Level: X-Archive-Number: 200510/134 X-Sequence-Number: 22987 Frank Bax wrote: > At 09:00 AM 10/12/05, Daryl Richter wrote: > >> Richard Huxton wrote: >> >>> Frank Bax wrote: >>> [snip] > > Richard, you've summed it up nicely. > > Splitting locations into subsets (like 2,2,3) doesn't work because it is > possible that low values in one location can be offset by high values in > another location, and still result in an excellent combo. > > The good news is these suggestions got me thinking outside the box. I > think I can program a modified brute-force that bypasses large numbers > of combos early. It might still be too large/slow, so I'd be interested > in finding more info about these "smarter algorithms" in option 2. > Where do I look? > If you're mathematically inclined, I would first look at using Lagrangian Relexation, it may be appropriate for your problem: http://www.2112fx.com/lagrange.html > Greg: my son's the gamer; I'm just trying to help him out. > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend -- Daryl Richter Director of Technology (( Brandywine Asset Management ) ( "Expanding the Science of Global Investing" ) ( http://www.brandywine.com ))