Solver through VBA Code

mabernathy

New Member
Joined
Mar 13, 2021
Messages
9
Office Version
  1. 2010
Platform
  1. Windows
Solve this transportation problem using VBA code.
The current amount of Supply (i.e. Capacity) at Dallas is 30. Suppose there is an opportunity to outsource additional capacity at this location. The question is how much additional capacity should we target? For example, should we double capacity to 60, triple it to 90, or choose some other level? To answer this question, you will solve a series of transportation problems inside a VBA loop with the Dallas capacity varied from 30 to 90 in steps of 10, i.e. 30, 40, 50, … 90. The results should be automatically entered by VBA on the spreadsheet as follows:
Dallas Supply
Total Cost
30​
40​
50​
60​
70​
80​
90​


Based on the above results, how much additional capacity would you recommend at Dallas?
 

Attachments

  • Capture.PNG
    Capture.PNG
    25.1 KB · Views: 24

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
As a transport analyst myself. What?!

Sounds like some homework where you've been to a class and that table was explained to you. It's nonsensical to just look at without any meaning given to the numbers in there and be expected to come up with a solution.

At least provide the answers and how you arrived at them if you need assistance with the VBA.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top