Originally posted by: OlivierCailloux
Thanks for investigating.
Your first answer gave me good hope, but your second one seems to contradict the first information... ?
Anyway here is what I tried to make sure that both versions are indeed the same. I indeed have several cplex versions on my computer but I tried to move the link file in jni to make sure that java crashes (proving that it is the one it uses). See below.
Do you know how I can make sure that the versions are identical in a cleaner way? Some way to ask for an exact version number, maybe?
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ sudo mv /usr/lib/jni/libcplex122.so .
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ java -classpath "lib/*:conf" fr.ecp.lgi.cplex.CplexTries
java.lang.UnsatisfiedLinkError: no cplex122 in java.library.path
java.library.path must point to the directory containing the CPLEX shared library
try invoking java with java -Djava.library.path=...
Exception in thread "main" java.lang.UnsatisfiedLinkError: ilog.cplex.Cplex.CPXopenCPLEX([I)J
at ilog.cplex.Cplex.CPXopenCPLEX(Native Method)
at ilog.cplex.CplexI.init(CplexI.java:5391)
at ilog.cplex.CplexI.<init>(CplexI.java:525)
at ilog.cplex.IloCplex.<init>(IloCplex.java:9418)
at fr.ecp.lgi.cplex.CplexTries.testMemoryError(CplexTries.java:36)
at fr.ecp.lgi.cplex.CplexTries.main(CplexTries.java:18)
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ sudo mv libcplex122.so /usr/lib/jni/
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ java -classpath "lib/*:conf" fr.ecp.lgi.cplex.CplexTries
IBM ILOG License Manager: "IBM ILOG Optimization Suite for Academic Initiative" is accessing CPLEX 12 with option(s): "e m b q ".
Tried aggregator 1 time.
(snip)
Elapsed real time = 1117.13 sec. (tree size = 29.78 MB, solutions = 0)
(snip)
Elapsed real time = 1204.97 sec. (tree size = 31.71 MB, solutions = 0)
(snip)
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ ls -l /usr/lib/jni/
total 400
lrwxrwxrwx 1 root root 88 sep 2 02:39 libcplex122.so -> /home/olivier/Logiciels/Développement/ILog/12.2/cplex/bin/x86_sles10_4.1/libcplex122.so
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ /home/olivier/Logiciels/Développement/ILog/12.2/cplex/bin/x86_sles10_4.1/cplex
IBM ILOG License Manager: "IBM ILOG Optimization Suite for Academic Initiative" is accessing CPLEX 12 with option(s): "e m b q ".
(snip)
Elapsed real time = 1365.28 sec. (tree size = 25.99 MB, solutions = 0)
(snip)
Elapsed real time = 1458.86 sec. (tree size = 84.96 MB, solutions = 0)
(snip)
Elapsed real time = 1548.16 sec. (tree size = 232.40 MB, solutions = 0)
Nodefile size = 93.27 MB (59.94 MB after compression)
(snip)
olivier@Camus:~/Desktop/SharedProfiles-0.5-SNAPSHOT$ ls -l "/home/olivier/Logiciels/Développement/ILog/12.2/cplex/bin/x86_sles10_4.1"
total 19996
-rw-r--r-- 1 olivier olivier 289 sep 2 14:45 clone0.log
-rwxrwxr-x 1 olivier olivier 36772 aoû 4 15:24 convert
-rwxrwxr-x 1 olivier olivier 6557640 aoû 4 15:24 cplex
-rwxrwxr-x 1 olivier olivier 6406720 aoû 4 15:24 cplexamp
-rw-r--r-- 1 olivier olivier 1997 sep 2 14:45 cplex.log
-rwxrwxr-x 1 olivier olivier 7422524 aoû 4 15:24 libcplex122.so
#CPLEXOptimizers#DecisionOptimization