System.Collections.Generic;
28 static voidMain(
string[] args)
31 if(Environment.GetCommandLineArgs().Length > 1)
32ws =
new GAMSWorkspace(systemDirectory: Environment.GetCommandLineArgs()[1]);
41Console.WriteLine(
"Ran with Default:");
43Console.WriteLine(
"x("+ rec.Key(0) +
","+ rec.Key(1) +
"): level="+ rec.
Level+
" marginal="+ rec.
Marginal);
48opt.AllModelTypes =
"xpress";
51Console.WriteLine(
"Ran with XPRESS:");
53Console.WriteLine(
"x("+ rec.Key(0) +
","+ rec.Key(1) +
"): level="+ rec.
Level+
" marginal="+ rec.
Marginal);
56 using(StreamWriter optFile =
newStreamWriter(Path.Combine(ws.WorkingDirectory,
"xpress.opt")))
57 using(TextWriter logFile =
newStreamWriter(Path.Combine(ws.WorkingDirectory,
"transport1_xpress.log")))
60optFile.WriteLine(
"algorithm=barrier");
62opt.AllModelTypes =
"xpress";
64t1.Run(opt, output: logFile);
68Console.WriteLine(
"Ran with XPRESS with non-default option:");
70Console.WriteLine(
"x("+ rec.Key(0) +
","+ rec.Key(1) +
"): level="+ rec.
Level+
" marginal="+ rec.
Marginal);
void Run(GAMSOptions gamsOptions=null, GAMSCheckpoint checkpoint=null, TextWriter output=null, Boolean createOutDB=true)
void GamsLib(string model)
GAMSJob AddJobFromFile(string fileName, GAMSCheckpoint checkpoint=null, string jobName=null)
This is the 1st model in a series of tutorial examples. Here we show: How to run a GAMSJob from file ...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4