Search found 2 matches

by arozzy
5 years ago
Forum: API
Topic: A problem about .Net API and GAMS
Replies: 2
Views: 27416

Re: A problem about .Net API and GAMS

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.
by arozzy
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...