Re: getting min value based on inputs

2009-09-25 Thread Greg Morphis
to generate the possible combinations in CF, but this method was a little easier.  Use it as a starting point or don't use it at all.  :) Thanks. ~Brad Original Message  Subject: Re: getting min value based on inputs  From: Greg Morphis gmorp...@gmail.com  Date: Sun

Re: getting min value based on inputs

2009-09-08 Thread Greg Morphis
min value based on inputs  From: Greg Morphis gmorp...@gmail.com  Date: Sun, September 06, 2009 10:20 am  To: cf-talk cf-talk@houseoffusion.com  The idea is that all lines add up to the total minutes entered in any  possible way because in the end they'll share the minutes.  1 line at 10,000

Re: getting min value based on inputs

2009-09-07 Thread Tom Chiverton
On Saturday 05 Sep 2009, b...@bradwood.com wrote: I believe it would take #plans x #lines tries to complete, but the good news multiplication and addition are very fast operations even when done millions of times. :) Yup, I do a brute force search, store the results, and then reporting to the

RE: getting min value based on inputs

2009-09-07 Thread brad
using some recursion to generate the possible combinations in CF, but this method was a little easier. Use it as a starting point or don't use it at all. :) Thanks. ~Brad Original Message Subject: Re: getting min value based on inputs From: Greg Morphis gmorp...@gmail.com

RE: getting min value based on inputs

2009-09-06 Thread brad
of messy to paste all that SQL here. ~Brad Original Message Subject: RE: getting min value based on inputs From: b...@bradwood.com Date: Sat, September 05, 2009 10:50 pm To: cf-talk cf-talk@houseoffusion.com We can help you come up with an algorithm, but first some

Re: getting min value based on inputs

2009-09-06 Thread Greg Morphis
entry since it's kind of messy to paste all that SQL here. ~Brad Original Message  Subject: RE: getting min value based on inputs  From: b...@bradwood.com  Date: Sat, September 05, 2009 10:50 pm  To: cf-talk cf-talk@houseoffusion.com  We can help you come up

Re: getting min value based on inputs

2009-09-05 Thread Greg Morphis
multiplication and addition are very fast operations even when done millions of times. :) I don't think there is any algorithm or equation you can use since there is no real pattern or method to the different plans. ~Brad Original Message  Subject: getting min value based on inputs

RE: getting min value based on inputs

2009-09-05 Thread brad
pick? Just random? Thanks. ~Brad Original Message Subject: Re: getting min value based on inputs From: Greg Morphis gmorp...@gmail.com Date: Sat, September 05, 2009 8:05 pm To: cf-talk cf-talk@houseoffusion.com I'd be willing to try brute force.. but how would I come

getting min value based on inputs

2009-09-04 Thread Greg Morphis
I was wondering if this is even possible. given a list of plans... CodePrice Minutes PLANA $25.00 0 PLANB $32.00 200 PLANC $42.00 500 PLAND $52.00 750 PLANE $63.00 900 PLANF $84.00 1,400 PLANG $105.00 2,100 PLANH $155.00 4,000 PLANI $210.00

Re: getting min value based on inputs

2009-09-04 Thread Dave Watts
I was wondering if this is even possible. given a list of plans... ... And given the user's input of say 10 lines and 9500 minutes. Is it possible to come up with the least costly set up that meets the requirements? For example. 10 lines 9,500 minutes would be 1 @ PLANI = 210.00 (6000

RE: getting min value based on inputs

2009-09-04 Thread brad
pattern or method to the different plans. ~Brad Original Message Subject: getting min value based on inputs From: Greg Morphis gmorp...@gmail.com Date: Fri, September 04, 2009 2:37 pm To: cf-talk cf-talk@houseoffusion.com I was wondering if this is even possible