From: Hae Lee Date: 2008-11-07T12:52:17+09:00 Subject: Re: Combination of numbers in an array that add up to x Andreas Launila wrote: > If you are planning to solve several instances of the problem then you > probably want to modify the above so that the weights and target are > sent in through the constructor. Hi there! The code excerpt worked wonderfully as I tried out different total values with additional values in the array. Thank you so much!!! Regarding what you typed - I understood parts of it but the majority of it went way over my head. Do you mean there's a way to instruct Ruby and Gecode/R to calculate for multiple targets using multiple weights sets within a single .rb file?? That sounds pretty wicked cool! Again, thanks so much!!! -- Posted via http://www.ruby-forum.com/.