Search found 373 matches

by Fred
3 years ago
Forum: Syntax
Topic: csv2gdx creates <empty> rows when trying to read in set
Replies: 6
Views: 4731

Re: csv2gdx creates <empty> rows when trying to read in set

Hi, You read text1 as a 5-dimensional set. Hence, given the structure of the data in the csv file, it is expected that the domain sets Dim1,...,Dim5 contain the empty element. If you need to read the sets separately, the only way to do this with csv2gdx is to put them in different csv file. You coul...
by Fred
3 years ago
Forum: Bugs
Topic: MSNLP solver "stops" before running the algorithm
Replies: 3
Views: 10519

Re: MSNLP solver "stops" before running the algorithm

Can you share the source file moi.gms?

Fred
by Fred
3 years ago
Forum: Modeling
Topic: Infeasibility & entries skipped
Replies: 3
Views: 2683

Re: Infeasibility & entries skipped

There is no problem. It is usual that the initial point is not feasible. Look for example at the trnsport model. The equation listing shows ---- demand =G= satisfy demand at market j demand(new-york).. x(seattle,new-york) + x(san-diego,new-york) =G= 325 ; (LHS = 0, INFES = 325 ****) demand(chicago)....
by Fred
3 years ago
Forum: Syntax
Topic: Sum over all observations except the observation under investigation
Replies: 2
Views: 3097

Re: Sum over all observations except the observation under investigation

Hi Teo,

You could use a dollar condition as follows

Code: Select all

out(i,outp).. sum(ii$(not sameas(i,ii)),lm(i,ii)*y(outp,ii))=E=y(outp,i)*(1+beta1(i));
I hope this helps!

Fred
by Fred
3 years ago
Forum: Modeling
Topic: Infeasibility & entries skipped
Replies: 3
Views: 2683

Re: Infeasibility & entries skipped

Hi, You are referring to the equation listing which provides information about the generated model before it is solved. Infes=... indicates that the equation is infeasible for the given start point (i.e. based on the current levels of variables when the model is generated). "remaining ... entri...
by Fred
3 years ago
Forum: Solvers
Topic: Codes runs fine but stops halfway
Replies: 6
Views: 4890

Re: Codes runs fine but stops halfway

The screenshot indicates that the job was not yet completed. Otherwise you would see

Code: Select all

*** Status: Normal completion
in the log (or some error message if there are any issues).
Can you please share the full log file?

Best,
Fred
by Fred
3 years ago
Forum: Solvers
Topic: Codes runs fine but stops halfway
Replies: 6
Views: 4890

Re: Codes runs fine but stops halfway

Hi Jun Keat,

There are different gdx file created. soleps.gdx seems to have the information you are looking for.

Fred
by Fred
3 years ago
Forum: Solvers
Topic: How to get LP file
Replies: 1
Views: 2329

Re: How to get LP file

You could use convert with option CplexLP.

I hope this helps!

Fred
by Fred
3 years ago
Forum: Modeling
Topic: solver solution differs from the best solution - PART 2
Replies: 2
Views: 2901

Re: solver solution differs from the best solution - PART 2

Hi, If all solvers return an optimal solution with objective value 44.2, my guess is that your own "solution" with objective value 43.8 is wrong. One way to go about analyzing this could be to provide your solution to the problem by manually setting the variable level values (x.l(i,j) = .....
by Fred
3 years ago
Forum: Modeling
Topic: Reasons for equation not being executed
Replies: 4
Views: 2656

Re: Reasons for equation not being executed

Hi,

The error message says it all. You should not type the "?". This was meant as a placeholder for whatever number you would like to enter there for your model.
The documentation might also be helpful: https://www.gams.com/32/docs/UG_GamsCal ... MSAOlimrow

I hope this helps!

Fred