Question: Q 2 . Write the GAMS code for the mathematical model given below. ( 2 5 Pts ) m a m i z e j

Q2. Write the GAMS code for the mathematical model given below. (25 Pts)
mamizej=1npjxj
subject toj=1nwjxjc,
xjin{0,1},j=1,dots,n.
n : number of items
Wj : weight of item j
pj: profit of item j
c : capacity of the knapsack
Capacitiy of Knapsack =20
Q 2 . Write the GAMS code for the mathematical

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!