Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double counting of Gurobi Floating licenses when called from or-tools #2227

Closed
PeterSels opened this issue Nov 16, 2020 · 6 comments
Closed
Assignees
Labels
Bug Solver: Gurobi GUROBI Solver related issue
Milestone

Comments

@PeterSels
Copy link

Dear or-tools coders,

  1. We experience a problem where, if the Gurobi solvers is instantiated from ortools 8.0.8283 in the single python call:
    self.solver = pywraplp.Solver.CreateSolver('GUROBI_MIXED_INTEGER_PROGRAMMING')
    , the floating token license server 'hands over' 2 tokens instead of 1 token per call.
    Gurobi support has confirmed this happens for them as well.
    This happens for the locally installed Gurobi 9.0.3 version connected to the Gurobi 9.0.3 floating license on the server.

  2. We also experience that or-tools, confirmed by Gurobi support, does not work yet with Gurobi 9.1.0, only released last week. Whatever the Gurobi license type, we never get an instantiated solver back (but always None) from the call mentioned in 1. This can be understandable, since or-tools has not done an update since Gurobi 9.1.0 ws released.

It would be great if you could solve the 2 problems above. :)

(PS: When calling a Gurobi 9.0.3 solver via or-tools when the license must come from a Gurobi node locked license the license counting goes just fine: 1 gotten for 1 asked (i.o. 2 gotten 1 asked for a GUrobi floating license).

(PPS: When calling Gurobi 9.0.3 directly without ortools- the floating license counting goes just fine.)

thanks and best regards,

Peter

@Mizux Mizux added Bug Feature Request Missing Feature/Wrapper Solver: Gurobi GUROBI Solver related issue labels Nov 16, 2020
@Mizux Mizux removed the Feature Request Missing Feature/Wrapper label Nov 16, 2020
@Mizux
Copy link
Collaborator

Mizux commented Nov 16, 2020

@PeterSels for 2) just create an issue... Do you know the name of the gurobi library in 9.1.0 ?

@lperron
Copy link
Collaborator

lperron commented Nov 16, 2020 via email

@PeterSels
Copy link
Author

Thanks for replying Laurent. Does it makes sense to you (from the code) that this issue of double counting would only appear in case of Gurobi floating licenses and not in the case of Gurobi node locked licenses? I have both, so I can check. Peter

@lperron
Copy link
Collaborator

lperron commented Nov 16, 2020 via email

@PeterSels
Copy link
Author

@PeterSels for 2) just create an issue... Do you know the name of the gurobi library in 9.1.0 ?

As you proposed, I created a new issues for update or-tools from Gurobi 9.0.3 to Gurobi 9.1.0 in :
#2229

@Mizux Mizux added this to the v8.1 milestone Nov 16, 2020
@Mizux
Copy link
Collaborator

Mizux commented Nov 16, 2020

@PeterSels my bad, shame on me, I wanted to say, I have just created an issue (#2228).
BTW both issues should be fixed on master now, thanks for the feedback !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Solver: Gurobi GUROBI Solver related issue
Projects
None yet
Development

No branches or pull requests

3 participants