ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 14 Feb 2015 06:08:32 -0600Sage+Gurobi: Can I control how many processors vertex_coloring uses?http://ask.sagemath.org/question/25819/sagegurobi-can-i-control-how-many-processors-vertex_coloring-uses/I am using Sage to color some graphs, using a 32-processor Linux server. I am using the vertex_coloring command, with Gurobi as the LP solver.
I've noticed that for graphs that take more than a few minutes, the program seems to eventually settle on using 16 processors. It would be nice if I could tell Sage (or Gurobi?) to allow more or fewer processors. Is this possible?
Thu, 12 Feb 2015 18:32:19 -0600http://ask.sagemath.org/question/25819/sagegurobi-can-i-control-how-many-processors-vertex_coloring-uses/Answer by Nathann for <p>I am using Sage to color some graphs, using a 32-processor Linux server. I am using the vertex_coloring command, with Gurobi as the LP solver.</p>
<p>I've noticed that for graphs that take more than a few minutes, the program seems to eventually settle on using 16 processors. It would be nice if I could tell Sage (or Gurobi?) to allow more or fewer processors. Is this possible?</p>
http://ask.sagemath.org/question/25819/sagegurobi-can-i-control-how-many-processors-vertex_coloring-uses/?answer=25825#post-id-25825If you want to change Gurobi's parameters for threads you will probably be interested by this function:
http://www.sagemath.org/doc/reference/numerical/sage/numerical/mip.html#sage.numerical.mip.MixedIntegerLinearProgram.solver_parameter
Nathann Sat, 14 Feb 2015 06:08:32 -0600http://ask.sagemath.org/question/25819/sagegurobi-can-i-control-how-many-processors-vertex_coloring-uses/?answer=25825#post-id-25825