Search found 6 matches

by dgormaz
4 months ago
Forum: Tools
Topic: Failure to change relative optimality error 1015
Replies: 1
Views: 178

Failure to change relative optimality error 1015

Hello, trying to run my code I got this error that is not of any kind. However I got a global and feasible solution, but it seems strange to me to have had the error: Failure to change relative optimality error 1015 I attach an image of the text Can someone explain to me what it means and what I can...
by dgormaz
4 months ago
Forum: Syntax
Topic: Help with gams, gdx and xlsx
Replies: 6
Views: 375

Re: Help with gams, gdx and xlsx

Sorry, here I post the excel, there are many tables of parameters.
by dgormaz
4 months ago
Forum: Syntax
Topic: Help with gams, gdx and xlsx
Replies: 6
Views: 375

Re: Help with gams, gdx and xlsx

Hi,my sheets are: H1 (K0, J01): 13VZ 13VZ 0_1M1 0 0_1M2 31 0_2NE 613 0_2NW 613 0_2SE 613 0_2SW 613 H2(K0,J02): 11QR 13C 11A 11D 11SE 11PH 11PA 11L 13RP 13P 11EC 12Q 11V 11G 11MC 11ES 11T 12SM 12SMAPA 14SMAPA 12ENEA 11VE 12SB 12CV 12LA 12IQ 14SI 0_1M1 173 176 307 223 130 0 145 2095 28 0 2055 0 0 0 88...
by dgormaz
4 months ago
Forum: Syntax
Topic: Help with gams, gdx and xlsx
Replies: 6
Views: 375

Help with gams, gdx and xlsx

hello, I'm trying to pass several cells of different sheets of an excel to gams using gdx, and I get strange errors, this I have until now: Parameter DH1 (K0, J01) $ call GDXXRW Alt_Tables.xlsx par = DH1 rng = H1(K0,J01)! A1: B7 output = DH1.gdx $ GDXIN DH1.gdx $ LOAD DH1 $ GDXIN Parameter DH2 (K0, ...
by dgormaz
8 months ago
Forum: Syntax
Topic: I need help with a if sentence
Replies: 1
Views: 250

I need help with a if sentence

Hello. I'm trying to put a if statement in a constraint but i can't I'm trying with: economic31(MW12, I1)$(FM2_2.L>0).. OpC31(MW12,I1)=E= (g*((HI1(I1)-HMW12(MW12))))+(OpF4*Dist31(MW12,I1)*(FM2_2(MW12,I1)**2)); ** Error 148 Dimension different economic31(MW12, I1)$((FM2_2(MW12,I1).L)>0).. OpC31(MW12,...
by dgormaz
8 months ago
Forum: Tools
Topic: Help with Gams and Excel interfase
Replies: 1
Views: 332

Help with Gams and Excel interfase

Hello. I want to know how to show my results in excel. I have a lot of variables and I do not know how to show them all without writing them one by one. Also, I tried to do this, and it don't show me all the results: < Execute_unload "resultados.gdx" F2.L F2.M execute 'gdxxrw.exe resultados.gdx o=re...