rte-france / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
10 stars 9 forks source link

hard crash if one Xpress function not found #116

Closed sgatto closed 11 months ago

sgatto commented 11 months ago

ortools by google uses a dynamic_library that performs a hard check on the successful load of every function. RTE developed a different, softer approach that is more refined. Here I propose to revert to the google version and drop RTE version in order for our development to be more easily accepted in the official repository.

sgatto commented 11 months ago

The latest development by google make the Python 3.8 CI actions to crash.

flomnes commented 11 months ago

Suggestion: If one function is missing, mark XPRESS as unavailable instead of a "hard crash".

sgatto commented 11 months ago

Suggestion: If one function is missing, mark XPRESS as unavailable instead of a "hard crash".

I have tried it, but I can't figure out how to catch the exception thrown by the CHECK macro here

I reproduced the same pattern used for the Gurobi interface