Forum Discussion
FICO
8 years agoCommunity Manager
Is it possible that the XPRESS c-libraries can be called directly from Python using ctypes?
I have successfully called a C dll from Python (using ctypes) that calls XPRMInit, XPRMloadmod etc but it would be nice to avoid the need to create the DLL altogether and call these functions direc...
FICO
6 years agoCommunity Manager
Hi Susanne, you were right: I have not noticed that 8.6 started enforcing the 'public' marker (I did not even know there was such a marker). Once I added it to the Mosel model, the Python code as expected - thanks!
You are also right that Johannes' example did not use XPRMfindident - I have added support for more functions from C library and have not noticed that this was one of those. The code itself is simple enough:
def findident(model, name):
returned = c_void_p()
objType = lib.XPRMfindident(model, name.encode(), byref(returned))
return objType, returnedAnd yes, i would be willing to share my extension of the code, with the understanding that it is just an extension of an example (not a full module), written by someone wihtout much experience with Python...
Are you thinking github, or do you have some more suitable place?
Related Content
Related Content
Hi, Currently we are working with Blaze v7.6, if we want to move to DM, Do we need to migrate to latest blaze(v7.10.) first and then to DM? or directly to DM? If to DM directly, existing DTs, Other templates can we reuse? OR need to create from scratch?
If we can move to DM directly, existing DTs, Other templates in the project can we reuse? OR need to create everything from scratch as per the DM standards?6Views0likes1CommentIs it possible to count all possible Solutions of a Problem?
I wondered wether its possible to either get the number of all possible solutions of a problem or to actually block a solution after an optimization (in my case its minimize an IP) is done to search ...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread1View0likes3CommentsIs it possible to output the used solving algorithm?
I'm usually working with Xpress Workbench or the optimizer via bash on Linux. Out of curiosity I compared its performances with the Xpress IVE 64bit and there I noticed the statistics tab with detail...1 year agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum6 unread comments6 unread0Views0likes6Comments