Benders2StageMT.cs
28 비공개 정적 무효센솔브(GAMSModelInstance수비, 심판더블cutconst, ref Dictionary<string, double> cutcoeff, Queue<Tuple<문자열, 더블, 사전<string, double>>> demQueue, ref더블objsub, 객체 queueMutex, 객체 ioMutex)
95masteri.인스턴스화("lp를 사용하는 masterproblem max zmaster", 선택,신규 GAMSModifier(cutconst),신규 GAMSModifier(cutcoeff),신규 GAMSModifier(세타,업데이트액션.Fixed, thetaFix));
101큐<Tuple<string, double, Dictionary<string, double>>> demQueue =신규큐<Tuple<string, double, Dictionary<string, double>>>();
125Console.WriteLine(" 스승님 "+ 마스터리.모델상태 + " : obj="+ 마스터리.SyncDB.GetVariable("z마스터").첫 번째 레코드().레벨);
135demQueue.Enqueue(신규튜플<문자열, 더블, Dictionary<string, double>>(s.Key(0), 시나리오데이터.기록 찾기(s.키(0),"문제").값, demDict));
이 예는 st에 대한 간단한 Benders 분해 방법의 병렬 구현을 보여줍니다...
GAMSModelInstance AddModelInstance(string modelInstanceName=null)
GAMSVariable GetVariable(문자열 변수 식별자)
GAMSParameter GetParameter(문자열 매개변수 식별자)
GAMSSet GetSet(string setIdentifier)
GAMSVariable AddVariable(문자열 식별자, int 차원, VarType varType, 문자열 explanatoryText="")
GAMSEquation GetEquation(문자열 방정식 식별자)
문자열 이름
GAMSParameter AddParameter(문자열 식별자, 정수 차원, 문자열 설명텍스트="")
새 GAMSEquationRecord FindRecord(params 문자열[] 키)
슬롯 나라데이터베이스 OutDB
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint 체크포인트=null, TextWriter 출력=null, Boolean createOutDB=true)
슬롯 나라데이터베이스 SyncDB
void Solve(SymbolUpdateType 업데이트 유형=SymbolUpdateType.BaseCase, TextWriter 출력=null, GAMSModelInstanceOpt miOpt=null)
void Instantiate(string modelDefinition, params GAMSModifier[] modifiers)
SymbolUpdateType
void Dispose()
ModelStat 모델상태
사전< 문자열, 문자열 > 정의
void Dispose()
새 GAMSParameterRecord FindRecord(params 문자열[] 키)
새 GAMSParameterRecord AddRecord(params 문자열[] 키)
새 GAMSVariableRecord FirstRecord()
GAMSJob AddJobFromString(문자열 gamsSource, GAMSCheckpoint 체크포인트=null, 문자열 jobName=null)
GAMSCheckpoint AddCheckpoint(string checkpointName=null)
GAMSOptions AddOptions(GAMSOptions optFrom=null)
업데이트작업
VarType