How can I disable Crossover in my specific case
AnsweredHello, I am new to the field of optimization and I recently started using Gurobi for my studies. I am currently working on a modeling language called GBOML which uses optimization tools such as Gurobi. The call is made with the following command line which is applied on the anaconda prompt:
(base) E:\>gboml E:\...\...directory to the GBOML text file\...txt --gurobi --json --output resullts_file
This seems to be the parameters of the function gboml:

The problem I am facing is that for the past 2 days, the solution time is taking longer and longer (up to one hour) even though I can see in the anaconda prompt that a solution has been found. After reading several other posts, I understood that the solution was to disable the Crossover option (crossover=1), but I don't know how to do it in my case where the only command line I have is the one I described to you earlier.
This is what I receive when I launch the optimization:

Thank you for your help.
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Note that you would set the Crossover parameter to 0 (not 1) to disable crossover.
According to the GBOML documentation, you can add Gurobi parameters to a file named \(\texttt{gurobi.opt}\) (this is referenced in your screenshot), then pass that file to the GBOML command-line interface via \(\texttt{--opt gurobi.opt}\). In your case, the \(\texttt{gurobi.opt}\) file would contain the single line
Crossover 0
0 -
Thank you Eli Towle ! It works just fine !
0
Post is closed for comments.
Comments
3 comments