설명
슬롯 머신 팀 여러분, I realized that a $load of a parameter with $gdxIn in which acronyms are used will fail when the acronym is defined after a definition of a set. As a workaround I defined all acronyms at the top of each program, but 이건 오히려 속상해요. The small example below demonstrates the strange behavior. Maybe I 문서에서 뭔가를 놓쳤나요? 곧 연락을 기다리겠습니다. Alexander Gocht <alexander.gocht@ilr.uni-bonn.de> 본 대학교(CPARI 팀) 식품자원경제연구소
Small Model of Type :슬롯 머신
카테고리 : 슬롯 머신 Test library
메인 파일 : gdx7.gms
$title 잘못된 약어 로드 중 (GDX7,SEQ=404)
$onText
게임팀 여러분,
약어가 $gdxIn인 매개변수의 $load가 다음과 같다는 것을 깨달았습니다.
집합을 정의한 후에 약어를 정의하면 사용이 실패합니다.
해결 방법으로 각 프로그램 상단에 모든 약어를 정의했지만
이건 오히려 속상해요.
아래의 작은 예는 이상한 동작을 보여줍니다. 아마도 나는
문서에서 뭔가를 놓쳤나요? 곧 연락을 기다리겠습니다.
알렉산더 고흐트
<alexander.gocht@ilr.uni-bonn.de>
본 대학교(CPARI 팀)
식품자원경제연구소
$offText
$call "rm -f acr1.gdx"
$onEcho > acr1.gms
약어 averLevels,otherone;
스칼라 x / 평균 수준 /
y / 다른 사람 /;
Execute_unload "acr1.gdx";
$offEcho
$call 슬롯 머신 acr1 lo=%슬롯 머신lo%
약어 firstsone,averLevels;
스칼라 x,y,z;
$gdxIn acr1.gdx
$로드 xy
$gdxIn
Execute_load 'acr1.gdx' z=x;
x,y,z를 표시합니다.
abort$(x <> averLevels) '잘못된 약어 로딩';
abort$(z <> averLevels) '잘못된 약어 로딩';