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.
-
正式なコメント
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
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
投稿コメントは受け付けていません。
コメント
2件のコメント