×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-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.

# Simple Binary Linear Programming. Help Please.

## Simple Binary Linear Programming. Help Please.

(OP)
I'm trying to get mathcad to do some simple binary linear calculations for optimization. I can do this easily using excel's solver, but want to learn how to do this in mathcad.

For the dummy problem I'm working on (example out of an old engineering economics textbook), I've got 5 different investment options each of which have a specified Present worth and an initial cost. I'm trying to find the Maximum combined present worth while keeping the initial cost under a given value.

Here is the data:
Option 1: PW1:$4718.79 Cost1:$15000
Option 2: PW2:$2247.04 Cost2:$25000
Option 3: PW3:$92912.88 Cost3:$40000
Option 4: PW4:$1011.69 Cost4:$50000
Option 5: PW5:$7415.24 Cost5:$70000

Cost Max= \$100000

Basically I'm trying to do the following.

Maximize PW1*x1 + PW2*x2 + ... + PW5*x5
Subject to Cost1*x1 + Cost2*x2 + ... + Cost5*x5
using xj=(0,1) j=(1..5)

Choosing options 3&4 maximize present worth while keeping cost below cost max.

Could someone help me get Mathcad to tell me this?

#### 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 Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

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

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!