PyOptInterface icon indicating copy to clipboard operation
PyOptInterface copied to clipboard

Callback support for HiGHS

Open rlloretb opened this issue 1 year ago • 6 comments

Following our previous discussion on HiGHS repo, can callback be supported for HiGHs as well? I can help with testing.

rlloretb avatar Jul 06 '24 12:07 rlloretb

Yes. I read the documentation of HiGHS callback recently. If I understand correctly, the capability of HiGHS callback is quite limited, we can only query some information or interrupt optimization.

Can you tell me more about your usage of callback of HiGHS and expectation of the functionality?

metab0t avatar Jul 06 '24 12:07 metab0t

My interest is in adding user cuts at the root node to tighten the relaxation. I am asking HiGHs devs if it is actually implemented. It is not clear from the documentation if cuts are possible with the current callback entry points.

rlloretb avatar Jul 06 '24 15:07 rlloretb

It seems that user cut and lazy constraint haven't been implemented in HiGHS currently.

I will leave this issue open and get back to this once HiGHS implements these features.

metab0t avatar Jul 07 '24 01:07 metab0t

Great. I asked them and the devs put it as feature request.

https://github.com/ERGO-Code/HiGHS/issues/1837

rlloretb avatar Jul 07 '24 07:07 rlloretb

Fyi, I've gotten a similar request for Gurobi from my team.

staadecker avatar Dec 11 '24 20:12 staadecker

Fyi, I've gotten a similar request for Gurobi from my team.

https://metab0t.github.io/PyOptInterface/callback.html

Callback is supported for Gurobi

metab0t avatar Dec 12 '24 00:12 metab0t