Cplex 32bit windows 32 bit

Hello

Is there some way to install cplex (Pkg.add(“CPLEX”)) on windows 32 bit ?
When I to add CPLEX it is written that it could not find the CPLEX installation…

Thanks

Did you install the CPLEX software itself? You need to first install CPLEX (commercial or academic license), then install the Julia package.

Yes CPLEX is already installed (I can make it work with python for example )
Then I tried to do
Pkg.add(“CPLEX”) in julia but I got a LoadError (Unable to locate CPLEX installation)

I have seen here that it’s not working right now for 32 bit windows:
https://github.com/JuliaOpt/CPLEX.jl

so I was wondering if there were some manual way of installing the package…

If you want to install in manually, you need to provide a deps.jl file in the build directory containing:

const libcplex = "path to CPLEX dll"

For example, for me on Linux 64 bits, the content of this file is:

const libcplex = "/home/blegat/Documents/Install/misc/CPLEX_Studio127/cplex/bin/x86-64_linux/libcplex1270.so"

Thanks !
I created a deps.jl file in ….julia\v0.5\CPLEX\deps having
const libcplex = “C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio126\cplex\bin\x86_win32\cplex1260.dll”

however when I try to do “using CPLEX” in julia I have the following error:

INFO: Precompiling module CPLEX.
ERROR: LoadError: LoadError: syntax: invalid UTF-8 sequence
in include_from_node1(::String) at .\Loading.jl:488

while loading C:.….julia\v0.5\CPLEX\src../deps/deps.jl ub expression starting on line 1
while loading C:\ ….julia\v0.5\CPLEX\src\CPLEX.jl in expression starting on line 10

Try to replace all \ by \\

Thanks, it’s better but still some problems !

julia> using CPLEX
INFO: Precompiling module CPLEX.
ERROR: LoadError: error compiling version: error compiling version: could not load library “C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio126\cplex\bin\x86_win32\cplex1260.dll”
The operation completed successfully.

in include_from_node1(::String) at .\loading.jl:488
in macro expansion; at .\none:2 [inlined]
in anonymous at .<missing>:?
in eval(::Module, ::Any) at .\boot.jl:234
in process_options(::Base.JLOptions) at .\client.jl:239
in _start() at .\client.jl:318
while loading C:\Users\p00411260.julia\v0.5\CPLEX\src\CPLEX.jl, in expression starting on line 85
ERROR: Failed to precompile CPLEX to C:\Users\p00411260.julia\lib\v0.5\CPLEX.ji.
in compilecache(::String) at .\loading.jl:593
in require(::Symbol) at .\loading.jl:422

julia>

No idea what could cause this :frowning:
@miles.lubin any idea ?

I don’t recall the reason why 32-bit cplex didn’t work on windows. It will need manual investigation.

@PLP, I would recommend contacting the CPLEX team at IBM and letting them know you’d like to call CPLEX from Julia.