## Search found 62 matches

3 months ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 260

### Re: Evolutionary algorithm for a GAMS model

No suggestions (this is my last try)?
4 months ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 260

### 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.
4 months ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 260

### 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.
4 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 541

### 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...
4 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 541

### 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...
4 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 541

### 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...
4 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 541

### 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...
4 months ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1593

### Re: Objective with if-condition

4 months ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1593

### 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...
4 months ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1593

### 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...