Topic
6 replies Latest Post - ‏2014-01-22T07:10:14Z by DanielJunglas
PaulBerglund
PaulBerglund
18 Posts
ACCEPTED ANSWER

Pinned topic trouble with new install

‏2013-01-22T00:03:36Z |
I just installed CPLEX 12.5 and tried to invoke one of the samples from MATLAB to see if it was working.

I get the error message:

Undefined function or method 'cplexlink125' for input arguments of type 'double'.

There is a file cplexlink125.mexw32 which is in my path. Is this the file that was being looked for, and if so, why couldn't it be found?

Paul Berglund
Updated on 2013-01-22T23:46:05Z at 2013-01-22T23:46:05Z by PaulBerglund
  • SystemAdmin
    SystemAdmin
    7929 Posts
    ACCEPTED ANSWER

    Re: trouble with new install

    ‏2013-01-22T06:48:17Z  in response to PaulBerglund
    Does it help to add the folder containing cplexlink125.mexw32 to the environment variables PATH and/or MATLABPATH?
    • PaulBerglund
      PaulBerglund
      18 Posts
      ACCEPTED ANSWER

      Re: trouble with new install

      ‏2013-01-22T23:46:05Z  in response to SystemAdmin
      OK, I figured it out.

      There were two different problems. One was that I had carelessly installed the 32-bit cplex when I needed the 64-bit.

      The other was that I needed to add the directory with cplex's matlab source to my path.

      I did that, and the examples ran fine.

      Paul Berglund
      • Huy Doan
        Huy Doan
        2 Posts
        ACCEPTED ANSWER

        Re: trouble with new install

        ‏2013-11-01T05:15:41Z  in response to PaulBerglund

        Hi Paul,

        Could you tell me how can you fix the problem "Undefined function or method 'cplexlink125' for input arguments of type 'double'"?

        I already run the following code in matlab:

        path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\matlab\x86_win32')

        path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\examples\src\matlab')

        and then I try the example cplexlpex but it still appears that error.

        Thanks,

        Huy

        • DanielJunglas
          DanielJunglas
          1469 Posts
          ACCEPTED ANSWER

          Re: trouble with new install

          ‏2013-11-06T07:33:04Z  in response to Huy Doan

          Are you sure you need 32bit CPLEX? If your OS or matlab version is 64bit then you may need 64bit CPLEX.

          • Huy Doan
            Huy Doan
            2 Posts
            ACCEPTED ANSWER

            Re: trouble with new install

            ‏2013-11-06T07:40:25Z  in response to DanielJunglas

            I only have the 32bit CPLEX. Does it mean that I cannot use my CPLEX on the 64bit OS or Matlab?

             

            • DanielJunglas
              DanielJunglas
              1469 Posts
              ACCEPTED ANSWER

              Re: trouble with new install

              ‏2014-01-22T07:10:14Z  in response to Huy Doan

              Like Paul said a few posts above: The versions of matlab and CPLEX must match. So for 64bit matlab you need 64bit CPLEX and for 32bit matlab you need 32bit CPLEX.