Question: my lingo code is not running ( solving ) please correct it for me and provide me the runnable code: SETS: TIME / 1 .
my lingo code is not running solving please correct it for me and provide me the runnable code:
SETS:
TIME ;
Define parameters for each period directly;
DATA:
Demand :;
Demand :;
Demand :;
Demand :;
Define constants;
SetupCost :;
UnitProdCost :;
HoldingCost :;
VARIABLES:
QTIME; Number of cars to be produced in each period;
ITIME; Inventory level at the end of each period;
zTIME binary; if production is initiated, otherwise;
Objective function to minimize total costs;
MIN @SUMTIME: SetupCost zTIME UnitProdCost QTIME HoldingCost ITIME;
Inventory balance constraints;
@FORTIME:
IFTIME THEN
I Q Demand;
ELSE
ITIME ITIME QTIME DemandTIME;
ENDIF;
;
Ordering link constraint ensuring that orders only occur if indicated by zTIME;
@FORTIME:
QTIME zTIME;
;
Set initial inventory to zero;
I :;
MODEL:
END;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
