0
GLPK로 변환하려고하는 AMPL 모델 파일이 있습니다. 그것은 시작 :GLPK : 다음과 같은 식 설정 기본값은 1이 아닌 2 차원이어야합니다.
_test.mod:5: set expression following default must have dimension 2 rather than 1
Context: : i < j } diff E ; set FIXED within V cross V default { } ;
MathProg model processing error
이 MathProg와 상위 사이의 구문 차이가 있어야 AMPL의 코드를 AMPL가 실행이 완벽하게 작동합니다 :
param n; # The number of nodes in the graph
set V := {1 .. n}; # The set of vertices in the graph
set E within V cross V; # The set of edges in the graph
set NE within V cross V := {i in V, j in V: i < j} diff E;
set FIXED within V cross V default {}; # The set of demand pairs with fixed flow
이 실행, 나는 다음과 같은 오류가 발생합니다. MathProg에서 2D 빈 세트를 어떻게 표현합니까?