Search found 64 matches

by PeterBe
1 week ago
Forum: Solvers
Topic: How to get CPLEX time
Replies: 1
Views: 133

Re: How to get CPLEX time

Has noone encoutered a similar problem?
by PeterBe
3 weeks ago
Forum: Solvers
Topic: How to get CPLEX time
Replies: 1
Views: 133

How to get CPLEX time

Hi folks, I am using GAMS with CPLEX as the solver. I want to get the exectution time of the solver (CPLEX time) as a parameter. I serached in the internet and found these two recommendations Source: https://support.gams.com/gams:how_do_i_get_the_total_model_solution_time_in_gams Scalar tcomp, texec...
by PeterBe
4 months ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 903

Re: Evolutionary algorithm for a GAMS model

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

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
5 months ago
Forum: Solvers
Topic: Evolutionary algorithm for a GAMS model
Replies: 2
Views: 903

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
5 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 666

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
5 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 666

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
5 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 666

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
5 months ago
Forum: Modeling
Topic: Iterative models/ Dynamic sets
Replies: 10
Views: 666

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
5 months ago
Forum: Syntax
Topic: Objective with if-condition
Replies: 28
Views: 1839

Re: Objective with if-condition

Thanks Fred for your answer, it solves my problem.