Loading...
Searching...
No Matches
TestGAMSSymbolRecord.cs
49 String testDir = HouseKeeper.gamsWorkingDir + Path.DirectorySeparatorChar + "testDisposedSymbolRecord";
71 String testDir = HouseKeeper.gamsWorkingDir + Path.DirectorySeparatorChar + "testDisposedAllSymbolRecords";
146 String testDir = HouseKeeper.gamsWorkingDir + Path.DirectorySeparatorChar + "testOrderOfDisposedSymbolRecords";
174 Assert.True((rec1 == null && rec2 == null), "expect GAMSParameterRecord object to be null after disposed");
194 Assert.True((rec1 != null && rec2 == null), "expect GAMSParameterRecord object to be null after disposed");
202 String testDir = HouseKeeper.gamsWorkingDir + Path.DirectorySeparatorChar + "testEquivalentSymbolRecord";
259 Assert.False(lastSlicedRecord == record, "lastSlicedRecord and record are not the same C# object");
265 Assert.True(lastRec.Equals(firstRec), "cost has only 1 record, expect LastRec and firstRec to be equivalent");
274 Assert.True(firstSlicedRec.Equals(firstRec), "expect firstSlicedRec and firstRec to be equivalent");
275 Assert.False(firstSlicedRec == firstRec, "firstSlicedRec and firstRec are not the same C# object");
300 String testDir = HouseKeeper.gamsWorkingDir + Path.DirectorySeparatorChar + "testEquivalentSymbol";
348 Assert.True(record.Equals(seattle_chicago), "expect record and seattle_chicago to be equivalent");
363 Assert.True(record.Equals(seattle_topeka), "expect record and seattle_chicago to be equivalent");
412 Assert.True(rec_i.Keys[0].Equals("san-diego"), "expect (sandiego) as keys of last record of i");
416 Assert.True(rec_d.Keys[0].Equals("san-diego"), "expect (sandiego, topeka) as keys of last record of d");
417 Assert.True(rec_d.Keys[1].Equals("topeka"), "expect (sandiego, topeka) as keys of last record of d");
424 Assert.True(rec_x.Keys[0].Equals("san-diego"), "expect (sandiego, topeka) as keys of last record of x");
425 Assert.True(rec_x.Keys[1].Equals("topeka"), "expect (sandiego, topeka) as keys of last record of x");
432 Assert.True(rec_demand.Keys[0].Equals("topeka"), "expect (topeka) as keys of last record of d");
455 Assert.True(rec_d.Key(0).Equals("san-diego"), "expect (sandiego, topeka) as keys of last record of d");
456 Assert.True(rec_d.Key(1).Equals("topeka"), "expect (sandiego, topeka) as keys of last record of d");
460 Assert.True(rec_x.Key(0).Equals("san-diego"), "expect (sandiego, topeka) as keys of last record of x");
461 Assert.True(rec_x.Key(1).Equals("topeka"), "expect (sandiego, topeka) as keys of last record of x");
465 Assert.True(rec_demand.Key(0).Equals("new-york"), "expect (new-york) as keys of last record of demand");
GAMSVariable GetVariable(string variableIdentifier)
GAMSParameter GetParameter(string parameterIdentifier)
GAMSSet GetSet(string setIdentifier)
void Dispose()
GAMSEquation GetEquation(string equationIdentifier)
new GAMSEquationRecord FindRecord(params string[] keys)
new GAMSEquationRecord FirstRecord()
new GAMSEquationRecord LastRecord()
GAMSDatabase OutDB
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
double Value
new GAMSParameterRecord LastRecord()
new GAMSParameterRecord FindRecord(params string[] keys)
new GAMSParameterRecord FirstRecord()
string Text
new GAMSSetRecord LastRecord()
new GAMSSetRecord FirstRecord()
new GAMSSetRecord FindRecord(params string[] keys)
override bool Equals(object obj)
string Key(int index)
bool MoveNext()
string[] Keys
GAMSSymbolRecord FirstRecord()
GAMSSymbolRecord FindRecord(params string[] keys)
GAMSSymbolRecord LastRecord()
double Level
new GAMSVariableRecord FindRecord(params string[] keys)
new GAMSVariableRecord FirstRecord()
new GAMSVariableRecord LastRecord()
GAMSJob AddJobFromGamsLib(string model, GAMSCheckpoint checkpoint=null, string jobName=null)
Definition HouseKeeper.cs:14
static void prepare(String dir)
Prepare directory by checking its existence. If exists, (non - recursively) delete all its contents,...
Definition HouseKeeper.cs:30
static void initializeTestFrom(String filename, String subdir)
initialize class properties from fileName and prepare directory subdir
Definition HouseKeeper.cs:114
DebugLevel
Definition HouseKeeper.cs:12