Re: pilog solver

2012-07-29 Thread Alexander Burger
Hi Joe, thanks for sharing this! Please forgive any style issues The style looks perfect! :) A minor issue might be the '+Choice' argument in (setq Oats (new NIL '+Choice 'capital 18 'labor 2 'revenue 55)) (setq Corn (new NIL '+Choice 'capital 36 'labor 6 'revenue 125)) It looks like a

Re: pilog solver

2012-07-26 Thread Henrik Sarvell
I can't say for sure if prolog is a good fit or not. The problems seems a little bit too arithmetic maybe but do not trust my word on it. Otherwise it seems like a typical curve examination problem to find all the maxima, the maxima with the highest profit is the solution. On Thu, Jul 26, 2012

Re: pilog solver

2012-07-26 Thread Joe Bogner
My interest also piqued when I saw the amb example in rosettacode. It seems like that could be combined with something to backtrack if a permutation goes out of bounds. http://www.randomhacks.net/articles/2005/10/11/amb-operator On Thu, Jul 26, 2012 at 12:21 PM, Joe Bogner joebog...@gmail.com