I found a solution, I tried to insert into my code
but it not worked, a error is indicated as 250
in the manual have the possibility to work with "Many-to-Many Mapping"
I insert the same exemplo of the manual and the error was the same.
but I'm using GAMS 22.5, could It (Many-to-Many Mapping) not work with this version?
exemple - manual:
Code: Select all
Set i / i1*i4 /
j / j1*j5 /
k / k1,k2 /
h / h1*h3 /;
Set b(i,j,k), c(i,j,k,h);
Option b(i:j,k), c(b:h);
display b, c;
Error:
Code: Select all
250 Unknown option. valid are -
lp = "lpname" (and for nlp, dnlp, mip, rmip etc)
integer1 to integer5 seed
limrow limcol domlim iterlim work (integer values)
decimals (0..8)
optca optcr
real1 to real5 reslim bratio (real values)
measure eject (no values)
sysout solprint (on/off)
solveopt (merge/replace)
sparseopt (safe/fast)
sparserun (on/off)
"symbol":decimals:rows:columns (display control)
(decimals, rows, columns are integers. Number of
displayed decimal places, labels for each row and
for each column)
Alexanre.ito wrote: ↑3 years ago
Hi I with a problem that I don't know how to declare, if is a SET or a PARAMETER.
I want that conditions result in a relation of the possibilities (t) with the arcs (nn).
Code: Select all
Set
n nodes / n1 * n3 /
nn(n,n) tub
t connection type / t1 * t4 /
p(n,n,t) connection possibilities of stretches
I'd like a relation like this (permut the connections type)
Code: Select all
p1 p2 p3 .. p... pn
n1.n2 t1 t2 t2 .. t1... t4
n1.n3 t1 t1 t2 .. t1... t4
n2.n3 t1 t1 t1 .. t4... t4;
I should test all the possibilities, with the equations and inequalities, to select just one of the possibility.
thinking now, maybe it could be variables, I don't know, would anyone have any idea how I can get to this condition?