Configure parameters via OS environment variables
ユーザーの入力を待っています。It would be nice if parameters (e.g. CloudPool, MemLimit, Logfile, ...) could be configured using environment variables, in addition to .env file and API (e.g Env() constructor).
The gurobi.env file functionality has some overlap with this request, but especially for unattended/noninteractive runs trusting that the working directory is set properly is not always realistic. Additionally, the parameters, especially the ones listed above, might not come from the same place as the code, and required parameter values vary according to run environment.
We can mimic this functionality by writing (yet more) custom code to initialize the session, but it would be much cleaner and easier if this were supported out of the box by Gurobi.
-
Hi Timo,
Is there a reason you cannot use something like this (assuming Python is used in your code):
env = gp.Env(empty=True)
logFile = os.getenv("GRB_LOGFILE", "gurobi.log")
env.setParam("LogFile", logFile)
...
env.start()We currently have no plans to extend the way users can set parameters.
Cheers,
Matthias0
サインインしてコメントを残してください。
コメント
1件のコメント