×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Number set to Target Value

Number set to Target Value

Number set to Target Value

(OP)
I have a very large dataset from which I need to create a subset of customers where their balance equals a target value...

So for example, giving the following dataset:

Customer 1 - 30
Customer 2 - 100
Customer 3 - 50
Customer 4 - 20
Customer 5 - 50

If I set my target value to 120, then I would expect the following combinations:
Customer 2 + Customer 4
OR
Customer 3 + Customer 4 + Customer 5

Is there a proc in SAS to do this or can someone give me a bit of direction on how I should approach this?

Thanks

where would we be without rhetorical questions...

RE: Number set to Target Value

It seems that it can have n number of combinations for a given target value. More to this one customer might be contributing to every possible combinations and so get dupicated.
This is very complex task to achieve. And I dont think there is any ready made PROC available for this in SAS; So Better to have more clarification on the requirement.  

sasbuddy
http://sites.google.com/site/sasbuddy/
 

RE: Number set to Target Value

(OP)
Hi,

thanks for the response. You're correct, this is a very complex task and I actually found this article which describes the problem a lot better. Sadly it also highlights the unlikelihood of me achieving this!

http://en.wikipedia.org/wiki/Knapsack_problem

Thanks anyway,

Nick

where would we be without rhetorical questions...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close