IBMDecisionOptimization / docplex-examples

These samples demonstrate how to use the DOcplex library to model and solve optimization problems.
https://ibmdecisionoptimization.github.io/
Apache License 2.0
396 stars 228 forks source link

CpoBlackboxFunction could not be imported from docplex.cp.model #73

Closed SHosseini94 closed 2 years ago

SHosseini94 commented 2 years ago

Hi, I have been using CpoBlackboxFunction on my local laptop since its beta version, and now I have access to its stable version 22.1.0. Without any problem, this function is working on my local laptop. However, I need to run my code on a high-speed computing cluster, Compute-Canada. Although the installed version on my virtual environment is also 22.1.0 , it gives me an error that cannot import name 'CpoBlackboxFunction' from 'docplex.cp.model' .

I appreciate you helping me in this regard.

Best, Saeede

HuguesJuille commented 2 years ago

Hi, This is very weird. Could you double-check that you do have the correct version of docplex on this computing cluster (e.g.: pip freeze | grep docplex ) ? Kind regards

SHosseini94 commented 2 years ago

Hi,

Yes, you're right. There was a version problem.

Thanks