Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a GAMS program for this model. Please look at the code template below and write a similar code for this exact software but for

Write a GAMS program for this model. Please look at the code template below and write a similar code for this exact software but for the model in picture insead. Here is the example: Sets
i facilities/
1*3
/
j markets/
1*4
/;
Parameters
c(i,j) transportation cost/
1.1=20
1.2=20
1.3=30
1.4=40
2.1=50
2.2=50
2.3=50
2.4=80
3.1=30
3.2=40
3.3=20
3.4=20
/
f(i) setup cost/
1=500000
2=300000
3=400000
/
d(j) demand of market/
1=400
2=500
3=600
4=500
/
q(i) capacity of plant/
1=1000
2=1000
3=1000
/;
Binary variables y(i);
Positive variables x(i,j);
Variable z;
Equations
Objfnc
Constraint2(j)
Constraint3(i)
;
Objfnc.. z =e= sum(i,sum(j, c(i,j)*d(j)*x(i,j)))+ sum(i, f(i)*y(i));
Constraint2(j).. sum(i,x(i,j))=e=1;
Constraint3(i).. sum(j,d(j)*x(i,j))=l= q(i)*y(i);
x.up(i,j)=1;
Model facloc /all/;
facloc.optcr =0.0;
facloc.reslim =3600;
facloc.limrow =50;
Solve facloc using MIP minimizing z;
Please give me a correct final code
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions