Loading...
Searching...
No Matches
DomainChecking.cs
40 Dictionary<string, double> capacity = new Dictionary<string, double>() { { "Seattle", 350.0 }, { "San-Diego", 600.0 } };
41 Dictionary<string, double> demand = new Dictionary<string, double>() { { "New-York", 325.0 }, { "Chicago", 300.0 }, { "Topeka", 275.0 } };
42 Dictionary<Tuple<string, string>, double> distance = new Dictionary<Tuple<string, string>, double>()
131 // b in contrast was defined with realxed domain info only, therefore we should never see a domain violation
269 Console.WriteLine("*** It should not be possible to export a GAMSDatabase containing domain violations by default");
341 testSet.AddRecord("123456789012345678901234567890123456789012345678901234567890123 ").Text = "OK";
346 testSet.AddRecord("1234567890123456789012345678901234567890123456789012345678901234").Text = "not OK";
354 Console.WriteLine("*** It should not be possible to add a record with more than 63 characters");
359 testDB.AddSet("textOK", "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345");
363 testDB.AddSet("textNotOK", "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456");
371 Console.WriteLine("*** It should not be possible to add an explanatory text with more than 255 characters");
375 testSet.AddRecord("OK").Text = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345";
379 testSet.AddRecord("notOK").Text = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456";
List< GAMSSymbolDomainViolation > ViolRecs
GAMSSymbol ViolSym
GAMSSet AddSet(string identifier, int dimension, string explanatoryText="", SetType setType=SetType.multi)
GAMSParameter GetParameter(string parameterIdentifier)
GAMSSet GetSet(string setIdentifier)
void Export(string filePath=null)
GAMSDatabase OutDB
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
double Value
new GAMSParameterRecord AddRecord(params string[] keys)
string Text
new GAMSSetRecord AddRecord(params string[] keys)
new GAMSSetRecord FindRecord(params string[] keys)
bool[] ViolInd
GAMSSymbolRecord ViolRec
string[] Keys
string Name
GAMSDatabase AddDatabase(string databaseName=null, string inModelName=null)
Definition DomainChecking.cs:8