ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 14 Feb 2015 13:08:32 +0100Sage+Gurobi: Can I control how many processors vertex_coloring uses?https://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?
Fri, 13 Feb 2015 01:32:19 +0100https://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>
https://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 13:08:32 +0100https://ask.sagemath.org/question/25819/sagegurobi-can-i-control-how-many-processors-vertex_coloring-uses/?answer=25825#post-id-25825