Search found 372 matches

by Fred
1 year ago
Forum: Solvers
Topic: Parallel Mode and Number of Threads Setting in cplex.opt file
Replies: 3
Views: 3034

Re: Parallel Mode and Number of Threads Setting in cplex.opt file

Looks correct. Please share your gms and log file. Fixing a problem with partial information is difficult.

Fred
by Fred
1 year ago
Forum: Modeling
Topic: Need help with modelling . Topic : Mobile energy storage in distribution.
Replies: 1
Views: 940

Re: Need help with modelling . Topic : Mobile energy storage in distribution.

I doubt that you will find help this way. Your chances to get help will be much better if you follow the forum rules.

Fred
by Fred
1 year ago
Forum: Modeling
Topic: Model generation time large compared to solving time
Replies: 1
Views: 923

Re: Model generation time large compared to solving time

Hi Simon, Half an hour model generation time for a model of that size is indeed incredibly long. Hard to say why it takes so long without being able to reproduce. Here we have some hints on how to implement models efficiently. If you could share the model/data, it might be easier for other forum use...
by Fred
1 year ago
Forum: Modeling
Topic: Slow solution using MIP
Replies: 6
Views: 2450

Re: Slow solution using MIP

Hi, The McCarl Newsletter Volume 47 has a good introduction to model scaling and also gives some pointers to other places (like the GAMS documentation) where model scaling is discussed: https://www.gams.com/newsletter/mccarl/archive/mccarl_newsletter_no_47.pdf There are diffreent ways to detect wher...
by Fred
1 year ago
Forum: Syntax
Topic: Error 71 Code
Replies: 2
Views: 1302

Re: Error 71 Code

Hi,

The error message actually says it all:
image.png
You declare equation k888 in line 2571 but you never define it.

I hope this helps!

Fred
by Fred
1 year ago
Forum: Syntax
Topic: Error 409 Code
Replies: 2
Views: 1250

Re: Error 409 Code

Hi,

You have to end the definition of each equation with a semicolon.

Best,
Fred
by Fred
1 year ago
Forum: Modeling
Topic: Slow solution using MIP
Replies: 6
Views: 2450

Re: Slow solution using MIP

Hi, Running with default settings (see Corre_iny_CON_Perdidas_baseline.log), the root relaxation already takes already 334 seconds on my machine. Afterwards, Cplex spends ages with the generation of flow cover cuts (I killed the job after half an hour). With that said, I tried to run the model with ...
by Fred
1 year ago
Forum: Syntax
Topic: Re-solve model Fixing Variables
Replies: 3
Views: 3293

Re: Re-solve model Fixing Variables

Hi, Why do you want to solve the fixed MIP as an LP? If this is about the duals you would like to get for that fixed MIP, many solver links (e.g. GAMS/CPLEX) have a built-in option to solve the LP which you would get when fixing all discrete variables. For GAMS Cplex, this can be controlled via solv...
by Fred
1 year ago
Forum: Modeling
Topic: GAMS Loops ends early
Replies: 1
Views: 1139

Re: GAMS Loops ends early

Hi,

hard to help without beiong able to reproduce. You loop over a set `iter`. So the loop will terminate after `card(iter)` iterations, no matter whether your termination criterion `abs(UB/LB) <= BdTol` is met.

I hope this helps!

Fred
by Fred
1 year ago
Forum: Syntax
Topic: Subset of multiple subsets
Replies: 4
Views: 6596

Re: Subset of multiple subsets

Hi Martin, While there are ways to turn off domain checking (e.g. via $onUni ), this won't help here because the following domain violation would then also be accepted. foo[c] = 1; Since all subsets are based on the same superset, you could use the symbol's domain explicitly but then take only a sub...