Skip to content

Commit 18bfc9d

Browse files
authored
Merge pull request #5 from alizmhdi/FIX/hardcoded-license
remove hardcoded token server IP and redundant username check
2 parents 9f30e0f + 0143ea5 commit 18bfc9d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

MetaOptimize/GurobiEnvironment.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ public static GRBEnv Instance
1515
{
1616
// for 8.1 and later
1717
_env = new GRBEnv(true);
18-
if (!Environment.UserName.Contains("solal", StringComparison.OrdinalIgnoreCase))
19-
{
20-
_env.Set("LogFile", "maxFlowSolver.log");
21-
File.WriteAllText(
22-
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "gurobi.lic"),
23-
"TOKENSERVER=10.137.59.115"); // ishai-z420, as of June 8th 2023
24-
}
2518
try
2619
{
2720
_env.Start();

0 commit comments

Comments
 (0)