Minimization cost problem

21 views
Skip to first unread message

felipewag...@gmail.com

unread,
May 14, 2016, 3:38:19 PM5/14/16
to AMPL Modeling Language

Hi,

I’m trying to model a minimization problem cost and I’m heaving some difficulties.


There are three factories, A, B, C, with production capacity of 5000, 9000 and 4000 units, respectively.

There are four destinies: I, II, III and IV, which demand is 4500, 6200, 5100 and 2700, respectively.

The factory C can produce more 2500 units, an extra production, with an extra cost per unit of 30% more than normal.

The problem is minimize the Total Cost.

I defined these sets and parameters:

set FAB; # factories

set DEP; # destinies

 

param CA {i in FAB}; # production capacity in factory i

param CO {i in FAB}; # production cost in factory i

param DE {j in DEP}; # demand of destiny j

param TR {i in FAB, j in DEP}; # transportation cost from factory i to destiny j

param CAE; # extra production capacity of factory C

param COE; # extra cost for extra production in factory C.


I appreciate if someone could help me.

 

Thanks

Felipe

Robert Fourer

unread,
May 15, 2016, 7:03:29 PM5/15/16
to am...@googlegroups.com
The next step is to define your decision variables. These are the values that will be determined by the optimization, such as the amounts to be produced and shipped.

Since this problem appears to be a kind of study exercise, it would not be appropriate to provide a detailed solution in this forum. However you can find a similar production-transportation model in section 4.3 of the AMPL book (http://ampl.com/BOOK/CHAPTERS/07-tut4.pdf#page=9).

Bob Fourer
am...@googlegroups.com

=======
Reply all
Reply to author
Forward
0 new messages