Coalco produces coal at three mines and ships it to four customers. The cost per ton of producing coal; the ash and sulfur
content (per ton) of the coal and the production capacity (in tons) for each mine; the number of tons of coal demanded by
each customer as well as the cost (in 50 120 0.08ton 0.05ton
Mine 2 62 140 0.04ton 0.03ton
Customer 1 Customer 2 Customer 3 Customer 4
Mine 1 4 6 8 12
Mine 2 9 6 7 11
Mine 3 8 12 3 5
Demand 80 70 60 90 bu problemi, yöneyleme göre çöz
To solve this problem, we need to formulate a linear programming (LP) model that minimizes the cost while meeting the customer demands and respecting the constraints on ash and sulfur content. Let's break down the problem and formulate it.
Decision Variables
Let ( x_{ij} ) be the number of tons of coal shipped from mine ( i ) to customer ( j ).
Where:
( i = 1, 2, 3 ) (mines)
( j = 1, 2, 3, 4 ) (customers)
Objective Function
Minimize the total cost, which includes both production and shipping costs:
After running the GAMS code, the results will indicate the number of tons to be shipped from each mine to each customer while minimizing the total cost. The output will provide the optimal values for (x_{ij}) and the minimized total cost (z). Each (x_{ij}.l) shows the tons of coal to ship from mine (i) to customer (j). Ensure that the solution respects all constraints, including production capacity, customer demand, and quality constraints (ash and sulfur limits).
Tabii ki, bu problemi lineer programlama (LP) kullanarak çözmek için önce modelimizi kurmalıyız. Amacımız maliyeti en aza indirirken müşteri taleplerini karşılamak ve kül ve kükürt içeriklerinin sınırlarını aşmamaktır.
Karar Değişkenleri
( x_{ij} ) değişkenini, madenden ( i ) numaralı müşteri ( j ) numaralı müşteriye gönderilen kömür miktarını (ton olarak) temsil edecek şekilde tanımlayalım.
Burada:
( i = 1, 2, 3 ) (madenler)
( j = 1, 2, 3, 4 ) (müşteriler)
Amaç Fonksiyonu
Toplam maliyeti (üretim ve nakliye maliyetleri) minimize etmeliyiz:
GAMS kodunu çalıştırdıktan sonra, sonuçlar her bir madenden her bir müşteri için gönderilmesi gereken kömür miktarlarını (x_{ij}.l) olarak gösterecek ve toplam minimize edilmiş maliyeti (z.l) olarak verecektir. Çözümün tüm kısıtları, yani üretim kapasitesi, müşteri talebi ve kalite kısıtlarını karşılayıp karşılamadığını kontrol ettiğinizden emin olun.