<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Transportation Optimization in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813434#M3709</link>
    <description>&lt;P&gt;Thanks a lot. the&amp;nbsp; optimization problem is for each lane. and i was exactly thinking the same. thanks a lot. I will get started and keep working on it.&lt;/P&gt;&lt;P&gt;thanks a ton for your reply&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 11:09:24 GMT</pubDate>
    <dc:creator>Santha</dc:creator>
    <dc:date>2022-05-16T11:09:24Z</dc:date>
    <item>
      <title>Transportation Optimization</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813422#M3706</link>
      <description>&lt;P&gt;Here is my description of the problem:&lt;/P&gt;&lt;P&gt;I have origins and destinations. There are few box sizes by which I can ship stuff from my origin to destination. Lets say for example there are 10 box sizes. Not all lanes (origin-destination combo) can have all 10 box sizes available. one or two may have all the 10 sizes available, many of them may have 7 sizes. very few can have 1 or 2 sizes only. Each size has its dimensions in terms of weight and volume. Each box size has a cost attached to it. My objective is to find the optimal mix of boxes, by minimizing costs and also respecting the capacities (weight and volume) of each box sizes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g if box size 1 volume is 10 cuft. box 2 is 15 cub ft. I have a load of like 22 cu. ft. The model should say I can use 1 of box 2 with 15 cu.ft stuffed in it and the remaining 7 cu.ft can be stuffed in 1 x box size 1, if that combo is cheap. Else whatever combo is cheap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you guide me in the direction to proceed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 09:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813422#M3706</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2022-05-16T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Transportation Optimization</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813424#M3707</link>
      <description>&lt;P&gt;My initial approach is sthg like this: Let say B1, B2 are box sizes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Min: (#of B1 * Rateof B1) +&amp;nbsp;(#of B2 * Rateof B2) + ...&amp;nbsp;(#of Bn * Rateof Bn)&lt;/P&gt;&lt;P&gt;subject to:&lt;/P&gt;&lt;P&gt;VolumeCapacityB1 &amp;lt;= whatever is the number&lt;/P&gt;&lt;P&gt;VolumeCapacityB2 &amp;lt;= whatever is the number&lt;/P&gt;&lt;P&gt;WeightCapacityB1 &amp;lt;= whatever is the number&lt;/P&gt;&lt;P&gt;WeightCapacityB2 &amp;lt;= whatever is the number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defining Variables:&lt;/P&gt;&lt;P&gt;Arcs (Orig-dest combo)&lt;/P&gt;&lt;P&gt;Boxnames&amp;nbsp;&lt;/P&gt;&lt;P&gt;Availability of box sizes, a binary variable indexed over arcs.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 09:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813424#M3707</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2022-05-16T09:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transportation Optimization</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813426#M3708</link>
      <description>&lt;P&gt;Hello Santha,&lt;/P&gt;
&lt;P&gt;There might be more to the decision you want to optimize but for what you described so far you can solve one optimization problem for each "lane". As far as I understand the lanes don't share resources, or is the total number of boxes used from destinations or overall limited in some way?&lt;/P&gt;
&lt;P&gt;If you can optimize each lane individually, the problem can be formulated as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data box_data;
	input size cost;
   datalines;
10 3
15 7
25 10
50 15
75 20
100 25
150 30
200 40
300 50
500 100
;

proc optmodel;
	/* Set for the boxes, just uses the position in the input dataset. */
	set BOXES;
	/* Amount that has to fit into the boxes. */
	num demand = 23179;
	/* Read the input data from a dataset. */
	num size{BOXES};
	num cost{BOXES};
	read data box_data into BOXES=[_N_] size cost;

	/* If the number of boxes is limited, we could add an upper bound as well. */
	var UseBox{BOXES} &amp;gt;= 0 integer;

	/* Minimize the cost. */
	min MinCost = sum{b in BOXES} cost[b] * UseBox[b];

	/* The sum of the sizes of the used boxes has to exceed the demand. */
	con cover_demand: sum{b in Boxes} size[b] * UseBox[b] &amp;gt;= demand;

	/* This will use the mixed integer solver since there are integer variables. */
	solve;

	/* Print the solution and the data to verify. */
	print UseBox size cost;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe this is a good starting point for you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 09:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813426#M3708</guid>
      <dc:creator>pchristophel</dc:creator>
      <dc:date>2022-05-16T09:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transportation Optimization</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813434#M3709</link>
      <description>&lt;P&gt;Thanks a lot. the&amp;nbsp; optimization problem is for each lane. and i was exactly thinking the same. thanks a lot. I will get started and keep working on it.&lt;/P&gt;&lt;P&gt;thanks a ton for your reply&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 11:09:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Transportation-Optimization/m-p/813434#M3709</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2022-05-16T11:09:24Z</dc:date>
    </item>
  </channel>
</rss>

