Re: [Haskell-cafe] Vague: Assembly line process

2010-06-16 Thread Bas van Dijk
On Tue, Jun 15, 2010 at 9:26 PM, Bas van Dijk v.dijk@gmail.com wrote: On Tue, Jun 15, 2010 at 7:23 PM, Martin Drautzburg martin.drautzb...@web.de wrote: When I know my supplies I want to know what I can produce. When I know what I want to produce I want to know what supplies I need for

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-16 Thread Yitzchak Gale
Alexander Solla wrote: ...and (probably) the most efficient production plan given the costs of his inputs.  This is a problem I am going to have to solve programmatically, too. I intend on solving it by finding the input in a given category of necessary inputs with the lowest average cost per

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-16 Thread Martin Drautzburg
On Tuesday, 15. June 2010 19:43:26 Steve Schafer wrote: On Tue, 15 Jun 2010 19:23:35 +0200, you wrote: When I know my supplies I want to know what I can produce. When I know what I want to produce I want to know what supplies I need for that. Both kinds of questions should be answered by a

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-16 Thread Steve Schafer
On Wed, 16 Jun 2010 18:30:47 +0200, you wrote: Then I thought, what if I replace the (*) and (+) operations which are applied when I multipy the matrix with a vector (i.e. a vector if inputs or outputs) by something more general. So I replaced (+) by function application and my matrix was now

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-15 Thread Martin Drautzburg
On Tuesday, 15. June 2010 01:40:03 Luke Palmer wrote: So hang on, what is the problem? You have described something like a vague model, but what information are you trying to get? Say, perhaps, a set of possible output lists from a given input list? When I know my supplies I want to know

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-15 Thread Steve Schafer
On Tue, 15 Jun 2010 19:23:35 +0200, you wrote: When I know my supplies I want to know what I can produce. When I know what I want to produce I want to know what supplies I need for that. Both kinds of questions should be answered by a singe Process thingy. I want to be able to chain processes

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-15 Thread Bas van Dijk
On Tue, Jun 15, 2010 at 7:23 PM, Martin Drautzburg martin.drautzb...@web.de wrote: When I know my supplies I want to know what I can produce. When I know what I want to produce I want to know what supplies I need for that. Both kinds of questions should be answered by a singe Process thingy.

[Haskell-cafe] Vague: Assembly line process

2010-06-14 Thread Martin Drautzburg
Hello all, this is a problem which has haunted me for some time. If this is simply hillarious, please tell me so. Or it may be some well known unsolvable problem... An assembly process takes inputs and produces outputs. I could say a Process is a function canProduce :: [Input]-[Output]-Bool

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-14 Thread Luke Palmer
So hang on, what is the problem? You have described something like a vague model, but what information are you trying to get? Say, perhaps, a set of possible output lists from a given input list? Luke On Mon, Jun 14, 2010 at 11:16 AM, Martin Drautzburg martin.drautzb...@web.de wrote: Hello

Re: [Haskell-cafe] Vague: Assembly line process

2010-06-14 Thread Alexander Solla
On Jun 14, 2010, at 4:40 PM, Luke Palmer wrote: So hang on, what is the problem? You have described something like a vague model, but what information are you trying to get? Say, perhaps, a set of possible output lists from a given input list? I think he's trying to construct a production