Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
580 views
in Technique[技术] by (71.8m points)

How can I check the version of cplex installed on my python?

i'm using the cplex on python. I'm trying to solve a MIP with roughly 280000 variables. However, error, "Exception has occurred: CplexSolverError CPLEX Error 1016: Community Edition. Problem size limits exceeded. Purchase at http://ibm.biz/error101", appeared. // To solve this, I want to make sure that IBM ILOG CPLEX Optimization Studio is installed correctly, not community version. How to check this? The license i have is IBM ILOG CPLEX Optimization Studio 12.10.0

question from:https://stackoverflow.com/questions/65840950/how-can-i-check-the-version-of-cplex-installed-on-my-python

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

if you run

from docplex.mp.model import Model

mdl = Model(name='buses')
nbbus40 = mdl.integer_var(name='nbBus40')
nbbus30 = mdl.integer_var(name='nbBus30')
mdl.add_constraint(nbbus40*40 + nbbus30*30 >= 300, 'kids')
mdl.minimize(nbbus40*500 + nbbus30*400)

mdl.solve(log_output=True,)

from the zoo example you ll see the cplex version

Example:

Version identifier: 12.10.0.0 | 2019-11-26 | 843d4de2ae

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...