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-
How, then, could thread safety ever be a concern (i.e., doesn't this guarantee one model per environment)?
-
Hi Eli, Do you know if Pyomo creates a Gurobi environment at step a) or b)? opt.set_instance(model) # a) opt.solve() # b) Thanks, Jake
-
Hello Eli, I am a bit unsure of the scope of Model.dispose(). Say after creating a model, I create an instance of GurobiPersistent via: import pyomo.environ as pyoopt = pyo.SolverFactory('gurobi_p...
-
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