Search found 41 matches

by Jubeyer
3 years ago
Forum: Tools
Topic: Mixed integer bilevel problem
Replies: 1
Views: 3163

Mixed integer bilevel problem

Hi,

Can anyone tell whether GAMS allows a bilevel problem where both the leader and follower are mixed integer type optimization problem. If yes, is there any specific solver that is required to solve this kind of problem?

Regards,
Jubeyer
by Jubeyer
3 years ago
Forum: Syntax
Topic: Ways to include numerous variable names after bilevel
Replies: 0
Views: 1902

Ways to include numerous variable names after bilevel

Hi, I would like to draw your attention regarding the syntax of this given code regarding bilevel optimization: https://www.gams.com/latest/docs/UG_EMP_Bilevel.html#UG_EMP_Bilevel_Example1 Since there is only one variable x in this case which doesn't belong to the follower so writing it was easy but...
by Jubeyer
3 years ago
Forum: Syntax
Topic: Would like to know why the code is written in this way
Replies: 2
Views: 1969

Would like to know why the code is written in this way

Hi, I am a pretty new user of GAMS. Recently I have come across a code snippet which is follows: $IFI '%SUSD_TRAJECTORY_CHECK%' == YES Q_SU_PUMP_RAMPDOWN_TRAJECTORY0(CONVENTIONAL_STORAGE_GEN,INTERVAL)$(ORD(INTERVAL) EQ 1).. $IFI '%SUSD_TRAJECTORY_CHECK%' == YES STORAGEVALUE(CONVENTIONAL_STORAGE_GEN,...
by Jubeyer
3 years ago
Forum: Syntax
Topic: Problem loading parameters
Replies: 2
Views: 3034

Re: Problem loading parameters

Sorry I forgot to mention how those two parameters declared,

SET
INTERVAL
GEN
MG_GEN

PARAMETERS
PUMPING_ENFORCED_ON(GEN,INTERVAL)
PUMPING_ENFORCED_ON_MG(MG_GEN,INTERVAL)
by Jubeyer
3 years ago
Forum: Syntax
Topic: Problem loading parameters
Replies: 2
Views: 3034

Problem loading parameters

Hi, I have two gdx files, and I want to load two different but similar parameters from those two files respectively. While one gets loaded nicely but other is encountering error 362 (saying values for domain 2 are unknown no checking possible). My syntax for loading the two parameters from two gdx f...
by Jubeyer
3 years ago
Forum: Modeling
Topic: Different indexing for same variable
Replies: 7
Views: 4454

Re: Different indexing for same variable

Sorry, I guess my example problem really didn't match like my original problem ( I cannot share the exact formulation since it's proprietary). But I guess, you can get it from the following description. Actually, I could have written the way you have shown but the problem is I need a fixed group of ...
by Jubeyer
3 years ago
Forum: Modeling
Topic: Different indexing for same variable
Replies: 7
Views: 4454

Re: Different indexing for same variable

For example as a part of an optimization problem I need to calculate the electricity generation cost from different types of plant by this formula : generation*fuel_price. But for different fuels the price varies so even though the variable generation's name is same but should be used with different...
by Jubeyer
3 years ago
Forum: Modeling
Topic: Different indexing for same variable
Replies: 7
Views: 4454

Different indexing for same variable

Hi, Is there any way to use different indexing for same variable in the same script? The reason for trying this thing is that a variable behaves the same way but needs to be indexed differently to be used in different equations since the constraints are different for different components. Can anyone...
by Jubeyer
3 years ago
Forum: Modeling
Topic: Error 352
Replies: 5
Views: 4792

Re: Error 352

Hi , I am facing the same issues during compilation of my developed model I am getting the error message like this in the '.lst' file 523 GEN_BLOCK_SCHEDULE_MG.LO(MG_GEN,BLOCK,INTERVAL)$(ORD(BLOCK) GT 1) = 0; **** $352 **** 352 Set has not been initialized But I have declared the variable 'GEN_BLOCK...