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
I pushed forward and implemented a solution using Alex's amb rosettacode
solution. It's probably not optimal but it runs really quick 0.08 seconds
for 100 acres. It grows to 5 seconds for 1000 acres.
Please forgive any style issues
"Example: A farmer has 100 acres on which to plan oats or corn. E
Hi Joe,
> Thank you. My researched suggested that it was possible with other prolog
> implementations so I wasn't sure if I was missing something simple in pilog.
Should be no problem to translate it, if you have a solution in Prolog.
But, as we said, it is probably not really useful.
> I also
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 wrote:
> Thank you. M
Thank you. My researched suggested that it was possible with other prolog
implementations so I wasn't sure if I was missing something simple in pilog.
I also wasn't sure if with a simple problem space I could combine something
like permute with a known range of possibilities. In the example below,
On Thu, Jul 26, 2012 at 4:11 PM, Joe Bogner wrote:
> I'd like to explore the use of pilog for solving linear programming
> problems. I'm not exactly sure where to start because I'm just starting to
> learn prolog.
Maybe http://www.eclipseclp.org/
--
http://gr.linkedin.com/in/yiorgos
--
UNSUBSCR
On Thu, Jul 26, 2012 at 04:02:07PM +0200, Henrik Sarvell wrote:
> 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.
I also don't think that Prolog or Pilog are well suited for that.
Linear programming is an
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