Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPLEX Error with CNAPy Install #509

Closed
Rohak72 opened this issue May 27, 2024 · 2 comments
Closed

CPLEX Error with CNAPy Install #509

Rohak72 opened this issue May 27, 2024 · 2 comments

Comments

@Rohak72
Copy link

Rohak72 commented May 27, 2024

Hello,

I've been trying to install CNAPy via the Anaconda instructions provided in the README, and run into the 'cplex does not exist error,' likely because I'm on a Mac OSX system. From reading prior issues, I see that I'd need to download the Intel processor version of Anaconda to continue. However, if I already have an academic license for Gurobi, thus eliminating the need for an additional solver like cplex, could I still move forward? Please let me know if this is feasible, no worries if not!

Thanks for creating this amazing tool!

Best,
Rohak

@axelvonkamp
Copy link
Member

Hello Rohak,

at present CPLEX is a fixed dependency which was unproblematic because of the availability of its community edition. With Mac it becomes more complicated since the switch to the ARM architecture as described here. So you need to install the x86 version just to fulfill the dependency, but then can use Gurobi for calculations. This is indeed annoying but since there is quite a bit CPLEX-specific code in CNApy (because not all its features are wrapped in optlang) I currently do not see an elegant solution how to make the CPLEX dependency conditional.

Best,
Axel

@Rohak72
Copy link
Author

Rohak72 commented May 28, 2024

Hi Axel,

Thanks for your response, I completely understand! Will proceed with next steps.

Best,
Rohak

@Rohak72 Rohak72 closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants