Help on jams.opt file for bilevel program

Solver related questions
Post Reply
Jubeyer
User
User
Posts: 25
Joined: 8 months ago

Help on jams.opt file for bilevel program

Post by Jubeyer » 2 weeks ago

Hi,

I am pretty new to GAMS. I am having difficulty in creating a proper .opt file for bilevel program. Currently it has
***********
KeepObj
MargTol=1e-6
ObjVarName=objvar
EMPInfoFile emp.info
filename Scalar_MG.gms
**************
the above statements but when I execute my code it says that
" EMP syntax error: key expected: is neither a variable nor an equation: SOLVE (i
tem 1 on line 3)"

but the echoing portion for emp.info in my code is following:
***
$onecho > %emp.info%
bilevel PRODCOST PRODCOST_BY_INTERVAL GEN_SCHEDULE GEN_BLOCK_SCHEDULE GEN_RESERVE_SCHEDULE
INSUFFICIENT_RESERVE
TOTAL_RESERVE LOSS_LOAD ADDITIONAL_LOAD_SLACK RAMP_UP_PENALTY RAMP_DOWN_PENALTY NET_ENERGY LINEFLOW PHASE_SHIFTER_ANGLE PHASE_SHIFTER_CONTRIBUTION HVDC_CONTRIBUTION
PHASE_SHIFTER_ANGLE1 PHASE_SHIFTER_ANGLE2 BRANCH_SLACK1 BRANCH_SLACK2
CONVENTIONAL_PUMP_SCHEDULE
PUMPING
UNIT_STATUS UNIT_STARTUP UNIT_SHUTDOWN STARTUP_COST
max OBJIN MG_EXPORT MG_RESERVE TOTAL_MG_EXPORT TOTAL_MG_RESERVE
Q_NET_EXPORT
Q_NET_RESERVE
Q_OBJIN
Q_MG_RESERVE
Q_MG_EXPORT
Q_MG_RESERVE_HI
Q_MG_EXPORT_HI
$offecho
***
The created info file looks like this:
****
modeltype MIP
adjustequ
SOLVE SCUC using emp minimizing PRODCOST
****


The item 1 in line 3 in the created emp.info file is SOLVE and so far I know this is how this thing should be written in GAMS.

Can anyone guide me how to solve the issues?
Regards,
Jubeyer

Post Reply