Is there any MIP solver you would recommend?

(Feel free to move this topic to offtopic, if desired)

I feel a bit sorry for my situation: I’d been using JuMP+Gurobi for more than 3 years. I thought it should be Gurobi10, at which time users need to set the nonconvex to 2 to support nonconvex optimization (which they don’t have to now).

As suggested by this link As a student at a university in China, how do I request a Free Academic License? – Gurobi Help Center, I’ll no longer have access to the Gurobi optimizer. It’s a bit sad but I think I shouldn’t grieve for something that wasn’t my fault—just like I’m also ineligible to use Claucle (though I’ve heard of it a lot of times), etc…

I would be glad to switch to HiGHS.jl, but I’m not sure if it will be as full-featured as Gurobi’s optimizer. (I’m actually prepared somewhat for the performance variation, if any).

For example, for a Gurobi’s MILP model, when I call optimize!(model) to let it solve for some time and then interrupt, and I call optimize!(model) for the 2nd time, I would just pick up all the information from the last solve. But when I use HiGHS, it seems that the 2nd-time optimize! would be identical to the 1st-time solve—it starts solving the MILP from scratch again. I don’t understand this behavior.

For another example, for a Gurobi’s MILP model, if I modify some objective coefficient and re-optimize, it would show “MIP starts from previous solution”, I’m not sure if HiGHS can also reuse information efficiently (in LPs, in MIPs, respectively).

Another small thing (I’m not sure if it is seen as an issue) is that ctrl+c works only with some small probability when HiGHS is solving a tough MILP.

(Finally, okay, I know there’s a well-known related solver that I could use—I just want to hear some more options. I wonder if there’s more experience that I can learn from. Thanks.)

Welcome.

Although I typically won’t use in-solver parallelism (I’d use Julia’s multithreading, with each MIP optimization procedure occupying only one logical processor).

Just tried a small UC instance with HiGHS.jl. That milp case was not too difficult (GRB solves it in approximately 1 minute), but HiGHS is having trouble in finding high quality primal-side feasible solutions, such that its performance is hard to be satisfying for my research purposes. I guess I have to resort to some commercial solvers (reluctantly).

And by the way, where is post #2 :upside_down_face:?

I don’t know what you expect. You pay for what you get. It’s amazing we even have a free, high quality open source solver like HiGHS.jl available to us. If you want help on your specific problem it’s best to just share some code, often there are things you can tweak to achieve better performance.

Post #2 is probably hidden as AI spam. (It was a good quality spam, but the purpose of this site is communication between humans, and you can get the same information by asking an AI yourself.)

I have only used MIP solvers for hobby projects, but enough to stress them. In my experience and for my problems, SCIP has been doing best, followed by HiGHS. On some problems Cbc has outperformed HiGHS, but has been less robust overall. Other open source alternatives I have tried have done much worse.

I would expect commercial solvers to do much better (otherwise they wouldn’t have much reason to exist and a hard time staying in business) but I’m not going to spend money on these hobby projects, so I’ll probably never know how much better.

Thanks for replying. You’re correct, and I agree.

often there are things you can tweak to achieve better performance

I think it’s often but not always. Some are just established MILP problems, e.g. my UC problem, you can check this directory https://github.com/zchenytt/UCSP/tree/main/RecedingHorizon. The code there is runnable to be solved by Gurobi. To switch to HiGHS it needs just very few modifications. For some easier input data, HiGHS takes approximately several times longer time, e.g.

Highs = [52,227,222,53,54,50,37,47,32,52,50,31,36,31,32,39,48,40,57,40]
GRB =  [10, 10, 11, 14, 12, 9, 10, 10, 10, 9, 9, 8, 9, 9, 9, 9, 8, 8, 9, 8, 8, 9, 8]

(runtime in seconds, for the same problems). And for some harder input data, HiGHS takes much longer time, e.g. Gurobi takes 80 seconds, while HiGHS takes> 5643s. (runtime needed to converge to 0.5% MIPGap.)

You’re welcome to test the runnable code mentioned above (It’s a practical research work currently being developed by myself).

You pay for what you get.

Sounds capitalist. But unfortunately I’m currently not amid that an environment. (I’ll see if someday the opportunity comes.)

Thanks for sharing.

Yes, I hadn’t use open source solvers before, until GRB stopped their academic licenses to us. I think I’ll switch to some other commercial solver later on, after the expiration of my license. I think one advantage of open source solver is that they can be deployed to multiple machines. I’ve been working with MILPs for >3 years, I hope I can keep walking along this track, amid some difficulty… or change my direction to other areas, …maybe if possible…

COPT is a good choice for you:

Spicy