Excel Solver Problem

CRX2C

New Member
Joined
Nov 20, 2015
Messages
8
Hello,

I have an excel solver question hopefully someone can help me with. I’m using the Simplex LP solving method to solve something that is not linear which I’m trying to make linear. I’m using the countIF function in my solver which is the issue.

I have attached a pic of my problem below. Overall it’s a transportation solver where the main objective is to minimize the overall transportation cost. I included some constraints (I.E. Max/Min shipments, maximum # of shipments by carrier).

The constraint I have an issue with is the top table far right column (Min # of Transportation Carriers). For example, there are five transportation carriers available and for the lane between San Fran – LA, I would like to have a minimum of three transportation carriers to provide service. Now, I can go to the constraint table (Maximum #of shipments/carrier) and set a maximum of 33% of the total shipments for each carrier, but that’s not the ideal solution.

Is there a way this can be achieved? I prefer not to use the other solving methods (I.E. GRG Nonlinear, Evolutionary) if it’s not necessary


Any help is greatly appreciated.

Transportation Solver
OriginDestination Transportation Carrier A Transportation Carrier B Transportation Carrier C Transportation Carrier D Transportation Carrier ETotal ShipmentsForecasted ShipmentsTotal # of Transportation CarriersMin # of Transportation Carriers
San FranLA 7,500 2,500 - - - 10,000 10,00023
PortlandPhoenix - 2,000 - 1,000 2,000 5,000 5,00033
TexasLas Vegas 1,125 - 1,375 - - 2,500 2,50022
New YorkBoston 1,125 - 625 1,750 - 3,500 3,50032
Total Shipments 9,750 4,500 2,000 2,750 2,000 21,000 21,000
Max Shipments 15,000 15,000 15,000 15,000 15,000
Min Shipments 2,000 2,000 2,000 2,000 2,000
CONSTRAINT: (Maximum # of shipments/carrier)
OriginDestination% Max of Total Transportation Carrier A Transportation Carrier B Transportation Carrier C Transportation Carrier D Transportation Carrier E
San FranLA75% 7,500 7,500 7,500 7,500 7,500
PortlandPhoenix40% 2,000 2,000 2,000 2,000 2,000
TexasLas Vegas55% 1,375 1,375 1,375 1,375 1,375
New YorkBoston50% 1,750 1,750 1,750 1,750 1,750
Total Transportation Cost (Min) $ 24,486,875

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I take it there's no solution to this problem or my problem is not clear.



Hello,

I have an excel solver question hopefully someone can help me with. I’m using the Simplex LP solving method to solve something that is not linear which I’m trying to make linear. I’m using the countIF function in my solver which is the issue.

I have attached a pic of my problem below. Overall it’s a transportation solver where the main objective is to minimize the overall transportation cost. I included some constraints (I.E. Max/Min shipments, maximum # of shipments by carrier).

The constraint I have an issue with is the top table far right column (Min # of Transportation Carriers). For example, there are five transportation carriers available and for the lane between San Fran – LA, I would like to have a minimum of three transportation carriers to provide service. Now, I can go to the constraint table (Maximum #of shipments/carrier) and set a maximum of 33% of the total shipments for each carrier, but that’s not the ideal solution.

Is there a way this can be achieved? I prefer not to use the other solving methods (I.E. GRG Nonlinear, Evolutionary) if it’s not necessary


Any help is greatly appreciated.

Transportation Solver
OriginDestinationTransportation Carrier ATransportation Carrier BTransportation Carrier CTransportation Carrier DTransportation Carrier ETotal ShipmentsForecasted ShipmentsTotal # of Transportation CarriersMin # of Transportation Carriers
San FranLA7,5002,500---10,00010,00023
PortlandPhoenix-2,000-1,0002,0005,0005,00033
TexasLas Vegas1,125-1,375--2,5002,50022
New YorkBoston1,125-6251,750-3,5003,50032
Total Shipments9,7504,5002,0002,7502,00021,00021,000
Max Shipments15,00015,00015,00015,00015,000
Min Shipments2,0002,0002,0002,0002,000
CONSTRAINT: (Maximum # of shipments/carrier)
OriginDestination% Max of TotalTransportation Carrier ATransportation Carrier BTransportation Carrier CTransportation Carrier DTransportation Carrier E
San FranLA75%7,5007,5007,5007,5007,500
PortlandPhoenix40%2,0002,0002,0002,0002,000
TexasLas Vegas55%1,3751,3751,3751,3751,375
New YorkBoston50%1,7501,7501,7501,7501,750
Total Transportation Cost (Min)$ 24,486,875

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,473
Messages
6,130,837
Members
449,597
Latest member
buikhanhsang

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