Forum Discussion
FICO
2 years agoCommunity Manager
How to resolve traceback: "xpress.InterfaceError: Incorrect control name; check name and license type"?
We are trying to access xpress in Python via Pyomo. We have no issues installing xpress and solving a simple model with the xpress interface. However, when we attempt to access xpress via pyomo we received the following traceback: "xpress.InterfaceError: Incorrect control name; check name and license type". We have a commercial license for xpress and we've confirmed that the pathing in python points to the correct license; however we're still experiencing this traceback.
We first tried contacting the Pyomo team and they believe the issue is related to an "environment variable setup for xpress, to point to the license", and that the issue is with how we have xpress configured.
We next tried following the troubleshooting steps in this forum post, but continued to receive the same traceback: https://community.fico.com/s/question/0D52E00005p8aKGSAY/xpressinterfaceerror-incorrect-control-name-error
Our only lead as to what could be happening at this point is that when we run the code to instantiate the correct solver license from the forum post above, we receive different "n" values each time we run this code: " n,string = xp.license(0,string)".
Has anyone else experienced this issue in the past? Any further troubleshooting steps we can try?
Thanks!
Will
1 Reply
- FICOCommunity Manager
Hi Will,
It's not clear to me why this error would occur. Could you please share your Python code along with the versions of Xpress and Pyomo that you are using? If you would prefer to share the code privately, you can send it to [email protected]. It would also be good to know whether you have an OEM license or a regular license. An OEM license can be recognised by examining the xpauth.xpr file in a text editor and looking for a string like this:
license ... oem="Your company" ...
Related Content
Related Content
How to make a variable be of "continuous type" but only allow (positive) integer values as its solution
Hi, I'm a student and currently stuck on a difficult problem. I've tried for many hours to solve this seemingly simple problem and can't find a solution. It would be cool if you could help without lo...2 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread0Views0likes4CommentsCan't find the reason for "E-113: Wrong type for conversion" error
Hi all, Im new to Mosel so this may be an easy one. See example Mosel model below and find associated data file attached. When I run the code it seems Mosel is trying to convert one of the data type...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread0Views0likes2Commentscom.blazesoft.engines.rules.NdCompilerException: The type for the initial value is invalid. Expected 'array_of_ElementParent' but got a 'array_of_"ElementChild".
Hi everyone, I'm trying to generate an ADB of a strategy, but i'm having the issue above, Does anyone experience something similar? I have an elementA that is parent of elementB, generally I work de...