Search found 62 matches

by PeterBe
1 week ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 137

Re: Evolutionary algorithm for a GAMS model

No suggestions (this is my last try)?
by PeterBe
1 month ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 137

Re: Evolutionary algorithm for a GAMS model

Does nobody have a clue if you can use an evolutionary algorithm (or any other metaheuristic) for your GAMS model? I'll be quite thankful If some could share his or her experience or assumptions.
by PeterBe
1 month ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 137

Evolutionary algorithm for a GAMS model

Hi guys,

I just wanted to ask whether it is possible to solve a GAMS model using an evolutionary algorithm? Or is there one solver that GAMS is compatible with which uses a metaheuristic for solving the optimization problem?

I'd appreciate input.
by PeterBe
1 month ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 355

Re: Iterative models/ Dynamic sets

Thanks Fred for your answer, there are still a few things that I do not understand. $eval tSlices ceil(card(tt)/288) why do we need a Compile-Time Variable here? You anyways specify the number of total timeslots. So the number of time slices can be computed based on this. map(tSlice,tt) = (ord(tSlic...
by PeterBe
1 month ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 355

Re: Iterative models/ Dynamic sets

Thanks Fred for your answer, I first of all wanted to try the mapping of the timeslots (without having the nested loop). However I have to admit that I don't the code you posted so I just copied and pasted it in my model (I merely adjusted the number of time slots). The beginning of my model looks l...
by PeterBe
1 month ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 355

Re: Iterative models/ Dynamic sets

Thanks a lot Fred for your answer and help. I really appreciate the tremendous help in this forum :) it help me solve the problem. Now I want to not only run the model for every household for the entire optimization horizon (all t) but I want for every 288 timeslots to run run the optimization for e...
by PeterBe
1 month ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 355

Re: Iterative models/ Dynamic sets

Hi all, I have a similar problem. I want to solve a model interatively. In my model I have two sets: t (for time) and households. Most of my parameters depend on both sets(t,households) and some only on (households) like: ... demand_electrical(t, household) $LOAD demand_electrical volumeOfBufferTank...
by PeterBe
1 month ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1175

Re: Objective with if-condition

Thanks Fred for your answer, it solves my problem.
by PeterBe
1 month ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1175

Re: Objective with if-condition

Thanks for your answer Fred, now I understand my mistake but I do not know how to fix it. How can the variable x depend on y? I tried SOS1 variable x(t, household,y) heatGenerationForBufferTank; SOS1 variable y(t, household,x) heatGenerationForDHWTank; but it did not work because y and x are not set...
by PeterBe
1 month ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1175

Re: Objective with if-condition

Thanks Fred for your answer, I changed the variables Binary variable x(t, household) heatGenerationForBufferTank; Binary variable y(t, household) heatGenerationForDHWTank; to SOS1 variable x(t, household) heatGenerationForBufferTank; SOS1 variable y(t, household) heatGenerationForDHWTank; and it see...