mps2gms1.gms : mps2gms 테스트

설명

이 모델은 Cplex가 MPS 파일을 작성하도록 하여 mps2gms 도구를 테스트합니다.
이를 일반 슬롯 게임 모델로 다시 변환하고 이를 해결하고 확인합니다.
목표는 다소 가깝습니다. LP, MIP, QP 및 QCP 모델에 대해 이를 수행합니다.

기고자: Michael Bussieck, 2014년 12월

소형 모델 유형 :슬롯 게임


카테고리 : 슬롯 게임 테스트 라이브러리


메인 파일 : mps2gms1.gms

$title 테스트 mps2gms (MPS2GMS1,SEQ=672)

$onText
이 모델은 Cplex가 MPS 파일을 작성하도록 하여 mps2gms 도구를 테스트합니다.
이를 일반 슬롯 게임 모델로 다시 변환하고 이를 해결하고 확인합니다.
목표는 다소 가깝습니다. LP, MIP, QP 및 QCP 모델에 대해 이를 수행합니다.

기고자: Michael Bussieck, 2014년 12월
$offText

$echo writemps test.mps > cplex.opt
$echo 최적성대상 3 > cplex.op2
$set 솔버 lp=cplex rmip=cplex mip=cplex qcp=cplex rmiqcp=cplex miqcp=cplex optcr=0

$set rs "%슬롯 게임scrdir%rs.%슬롯 게임scrext%"
$onEchoV > "%rs%"
$setArgs 모델 객체
$call gamslib -q %model%
$if errorlevel 1 $abort가 %model%을(를) 검색할 수 없습니다.
$call rm -f test.mps
$call 슬롯 게임 %model% lo=2 optfile=1 %solver%
$if errorlevel 1 $abort가 %model%을(를) 실행하여 MPS 파일을 생성할 수 없습니다.
$if 존재하지 않는 경우 test.mps $abort test.mps가 %model% 실행에 의해 생성되지 않음
$call mps2gms test.mps test.gdx test.gms > %system.nullfile%
$if errorlevel 1 $abort %model%에서 mps2gms 실행 문제
$if 존재하지 않는 test.gms $abort 문제 %model%에 대한 test.gms 찾기
$echo "abort$(abs(abs(obj.l)-%obj%)>1e-2) '잘못된 obj %obj%<>', obj.l;" >> 테스트.gms
$call 슬롯 게임 테스트 lo=2 optfile=2 %solver%
$if errorlevel 1 $abort가 테스트(%model%)를 실행할 수 없거나 목표가 잘못되었습니다. test.lst를 검사합니다.
$offEcho

$batInclude "%rs%" trnsport 153.675
$batInclude "%rs%" 큐브 4
$batInclude "%rs%" qdemo7 1589042.385503
$batInclude "%rs%" pmeanvar 108.65189