Search found 2 matches

by mahyar
6 years ago
Forum: Syntax
Topic: Excel to gams
Replies: 2
Views: 3197

Excel to gams

Hi Everyone.
I have a problem.
I want to import data from excel to gams.i has written the following code

$call GDXXRW.exe indata1.xlsx trace=3 par=a rng=Interval!a1 rdim=1 cdim=1
$load a
display a;

but no value has been assigned.
I attached my files.
by mahyar
6 years ago
Forum: Syntax
Topic: ERROR Domain violation for set
Replies: 1
Views: 2373

ERROR Domain violation for set

In my model there is a variable x_i,j,k where i belong to J=J_1∪J_2∪J3. for some constraints i is belonged to J and for other constraints i is belonged to J_1 , J2 ,.... for last case I am getting the error: Domain violation for set. x_i,j,k is defined as binary variable. Any help would be appreciat...