Jacob Wren
- Total activity 36
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 1
- Subscriptions 6
Comments
Recent activity by Jacob Wren-
Hi Eli, Thank you. It would be desirable if the message reflected this to eliminate ambiguity. To clarify, I also need the line: del m after I solve the model m, right? Thanks, Jake
-
Hello Eli, By deleting the objective, I mean, for a model m, with the objective set as, import pyomo.environ as pyom.obj = pyo.Objective(rule=obj_expression, sense=pyo.minimize) After setting the i...
-
Hi Eli, Returning to the article mentioned above, there is another discrepancy. I don't need the lines, del mopt._solver_model.dispose() I, instead, only delete the objective; this is sufficient to...
-
Hi Eli, I instead dispose of the environment. This is a fine solution, given the model isn't costly to build. Thanks, Jake
-
Jaromił, Thank you!
-
Hi Jaromił, This is the reason why we always tell our users to use one environment for one model when solving models in parallel... Just to clarify, one environment per model creation, per model ...
-
Hi Eli, Is there a workaround to use multiprocessing with Pyomo to ensure that I won't have more than one thread within a single environment? Thanks, Jake
-
Hello Jaromił, Will Gurobi issue a warning message if you violate thread safety (this would be desirable)? If not, is there a (quick) way to check? Thanks, Jake
-
Hi Jaromił, Thank you. No, there is no cost regarding performance, but you lose thread safety which can be dramatic for parallel applications. What do you mean by dramatic? Thanks, Jake
-
Hi Jaromił, To solve the problem I outlined above, would you recommend having a single environment (i.e., one environment for all model solves)? If so, how do I implement this (there doesn't seem t...