+ Reply to Thread
Results 1 to 7 of 7

Transportation model, linear programming and Solver

  1. #1
    Registered User
    Join Date
    12-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Transportation model, linear programming and Solver

    I am working on a transportation model in which I have to choose the best location for a new factory that minimizes transportation costs with 3 warehouses. I currently have 2 factories, and I want to choose the location for a third factory between 3 alternatives.

    I have been able to solve this problem by analyzing each of the 3 possible locations separately (therefore, creating linear programming models with the 2 old factories + a new one), and then comparing the minimum costs that I would incur in each of these three cases.

    I've been trying to integrate these three steps into one, so that I would have to run Solver only one time and it would give me the best possible location among the 3 choices, but so far I've been unsuccessful. Would it be possible to achieve this in one step?

    And more specifically, could I achieve it while still keeping it as a linear programming problem?

    Crossposted at:
    http://www.mrexcel.com/forum/excel-q...ng-solver.html
    http://forum.chandoo.org/threads/tra...-solver.13741/
    http://www.excelguru.ca/forums/showt...0459#post10459
    http://www.ozgrid.com/forum/showthread.php?t=184613
    http://www.excelfox.com/forum/f2/tra...1604/#post7493
    Last edited by GregDP; 12-06-2013 at 02:42 PM.

  2. #2
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: Transportation model, linear programming and Solver

    Hi,

    Can you attached your sample file here.

  3. #3
    Registered User
    Join Date
    12-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Transportation model, linear programming and Solver

    Here it is. Instead of doing the process 3 times in different sheets, I would like to do it in one step.

    Thank you.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: Transportation model, linear programming and Solver

    Hi

    ExampleLE.xlsx
    I really don't know what you what. Can you illustrate the desired out you want, I guess it would be better if you illustrate in your attachment before and after.

    And may be we could use what if analysis in your file.

    Please do not for get to click add reputation, if this post helps you. Just click star lower left below my post.

  5. #5
    Registered User
    Join Date
    12-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Transportation model, linear programming and Solver

    Thanks a lot for your response. I think that you have really understood what I wanted, and I totally agree with what you have done. My only issue now is that when I change the initial values for the variables and run Solver again, it gives me a different (less optimal) solution. Does that also happen to you?

  6. #6
    Forum Contributor
    Join Date
    11-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2013
    Posts
    159

    Re: Transportation model, linear programming and Solver

    Hi,

    What variables you are speaking? Is it the demand? Can you show me the computation/solution for linear programming you are using?

    Thanks,

    Reimar_rem

  7. #7
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Transportation model, linear programming and Solver

    Hi GregDP

    Instead of doing the process 3 times in different sheets, I would like to do it in one step
    Not excatly what you asked for but since your setup in every sheet is the same except for the cost part (New1 to New3) you could set up a macro to loop through the sheets and running solver on each sheet.

    Please Login or Register  to view this content.
    To get this to work you must also set a reference to Solver in "Visual Basic". Open the "Visual Basic" window, select "Tools", then "References" and "tick" box marked "Solver"

    To run Solver 3times on the same sheet perhaps someting like this. A bit more clumsy if I may say so.

    Please Login or Register  to view this content.
    Will change the "cost" row and copy values from the solver run to A12, A24 and A36. As before you must have set a reference to solver if you use a macro.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Linear Programming
    By obbor in forum Excel General
    Replies: 2
    Last Post: 03-06-2012, 05:43 PM
  2. [SOLVED] linear model with solver
    By vert in forum Excel General
    Replies: 1
    Last Post: 04-04-2006, 11:35 AM
  3. Replies: 2
    Last Post: 02-08-2006, 08:10 PM
  4. Linear Programming
    By Franklin in forum Excel General
    Replies: 2
    Last Post: 01-22-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1