1
AMPL 구문에 어려움을 겪고 있습니다. 내 모델에서 내가 가진 :AMPL param syntax
set GRID = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16;
param W = 4;
param d{i in GRID, j in GRID} = sqrt((abs(i-j) mod W)**2 + (abs(i-j) div W)**2); # I want to calculate the distance between each pair of points
을하지만 마지막 줄에 내가 오류 얻을 :
내 데이터set GRID; # a grid represented by a sequence of integer
param W; # width of the grid
param d{i in GRID, j in GRID}; # distance between point of the grid
내가 가진
이 에게(offset 7)
expected ; ([ : or symbol
이