By following your suggestion, I have solved my problem. I added only the line below.
GAMSWorkspace ws = new GAMSWorkspace(workingDirectory: @"L:\GAM_NET\DATA");
Thank you.
Search found 2 matches
- 5 years ago
- Forum: API
- Topic: A problem about .Net API and GAMS
- Replies: 2
- Views: 27416
- 5 years ago
- Forum: API
- Topic: A problem about .Net API and GAMS
- Replies: 2
- Views: 27416
A problem about .Net API and GAMS
Hi, I am new at .NET API of Gams. I have a problem for the code below GAMSWorkspace ws; if (Environment.GetCommandLineArgs().Length > 1) ws = new GAMSWorkspace(systemDirectory: Environment.GetCommandLineArgs()[1]); else ws = new GAMSWorkspace(); GAMSJob t = ws.AddJobFromString(GetModelText()); t.Run...