Question: Help with LINGO 2 0 . 0 ? need a syntax intervention I am writing a code for my pet recycling model / * Sets

Help with LINGO 20.0? need a syntax intervention
I am writing a code for my pet recycling model
/* Sets */
set Customers / a1, a2,..., an/;
set X1s / b1, b2,..., bm/;
set X2s / c1, c2,..., cn/;
set QualityLevels / d1, d2,..., dq/;
set ProductVarieties / f1, f2,..., fp/;
/* Parameters */
param FCb; /* Fixed cost of X1*/
param Qb(b); /* Capacity of X1(b)*/
param Dc(i, b); /* Distance from X2(i) to X1(b)*/
...(other parameters)
/* Decision Variables */
var BinaryVar_CustToX1(a, b), in 0,1; /* Customer a assigned to X1 b?*/
var BinaryVar_X1ToX2(b, c), in 0,1; /* X1 b assigned to X2 c?*/
...(other decision variables)
/* Objective Function (Minimize Total Cost)*/
min TotalCost:
sum(a in Customers, b in X1s) FCb * BinaryVar_CustToX1(a, b)+
...(other cost components from all phases);
/* Constraints */
...(Constraints for customer assignment, capacity, balanced allocation, routes)

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 Databases Questions!