Dear Dr. Paras, dear AMPL group,

I am also new to AMPL and get the same CPLEX error, and I can not figure out what’s wrong (probably some syntax error).

I attach the .mod and .dat files.

If I expand the model I get:

maximize WELFARE:

650*X[1] + 620*X[2] + 536*X[3] + 520*X[4] + 448*X[5] + 378*X[6] +

366*X[7] - 495*X[8] - 477*X[9] - 627*X[10] - 627*X[11] - 354*X[12] -

354*X[13];

subject to CONVEXITY[1]:X[1] + X[2] < 1;

subject to CONVEXITY[2]:X[3] + X[4] < 1;

subject to CONVEXITY[3]:X[6] + X[7] < 1;

subject to CONVEXITY[4]:X[8] + X[9] < 1;

subject to CONVEXITY[5]:X[10] + X[11] < 1;

subject to CONVEXITY[6]:X[12] + X[13] < 1;

subject to BALANCE[1,1]:

10*X[1] - 9*X[8] - 11*X[10] = 0;

…

Which is suspicious, since there is no line break after the ‘:’ in the convexity constraints.

Thank You

AMPL Google Group a következőt írta (2018. november 1., csütörtök, 18:36:47 UTC+1):

aggrEU_1.dat (753 Bytes)

aggrEU_1.mod (1.82 KB)