lp_solve -rxli xli_CPLEX

24 views
Skip to first unread message

James Gunning

unread,
Oct 23, 2024, 11:10:53 PM10/23/24
to lp_solve
Hello All,
         I'm using version 5.5 in the version lpsolve-devel-5.5.2.11-3
distributed by Fedora. I am wondering if something has broken in the
parsing of CPLEX lp format files. Can anyone advise?
E.g. for a simple model file like the below, I get

% lp_solve -rxli xli_CPLEX test.txt

%cat test.txt

Maximize
 obj: x1 + 2 x2 + 3 x3 + x4
Subject To
 c1: - x1 + x2 + x3 + 10 x4 <= 20
 c2: x1 - 3 x2 + x3 <= 30
 c3: x2 - 3.5 x4 = 0
Bounds
 0 <= x1 <= 40
 2 <= x4 <= 3
General
 x4
End

Many thanks
 James

James Gunning

unread,
Oct 23, 2024, 11:26:24 PM10/23/24
to lp_solve
All,
      Sorry, I forgot to add, the code run returns

% lp_solve -rxli xli_CPLEX test.txt
set_XLI: File not found 'xli_CPLEX'
read_XLI: No valid XLI package selected or available.
Unable to read model.

Many thanks
 James

Peter Notebaert

unread,
Oct 24, 2024, 1:50:58 AM10/24/24
to James Gunning, lp_solve
set_XLI: File not found 'xli_CPLEX'

This is your problem. xli's are a separate shared library and lp_solve can't find it.
Do you have xli_CPLEX.so in the same directory as lp_solve?

Try when you specify also .so and if that does not help, try to specify the full path to xli_CPLEX.so
It should work.

Peter


--
You received this message because you are subscribed to the Google Groups "lp_solve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lp_solve+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/lp_solve/1a2abec7-b199-4026-a859-b5df7f0c2d59n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Gunning

unread,
Oct 24, 2024, 1:57:39 AM10/24/24
to lp_solve
Hi Peter, All,
          I figured it may need another .so link. It looks like the fedora maintainers haven't managed to package that it, so I've filed a bug report there.
I just asked here in case the functionality had now been absorbed in liblpsolve55.so.
Thanks much
          James.
Reply all
Reply to author
Forward
0 new messages