Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  OPL 32-bits on Windows 7 x64 problem

    Posted Sat December 24, 2011 02:31 PM

    Originally posted by: Marcelo.cl


    Hi, all. I would like to ask you some help with a problem:

    I had to change my computer, and the new one is with Windows 7 x64.
    Since I changed my O.S. from Windows 7 32-bits to Windows 7 x64, my Cplex Interfaces .Net Applications doesnt work anymore.

    I'm using OPL 6.3 Analyst Studio and I have a .net console application that executes my cplex models and get the results.
    But when I run my application I receive the following error:
    An unhandled exception of type 'System.TypeInitializationException' occurred in Planificacion.exe
    Additional information: The type initializer for 'ILOG.OPL.OplFactory' threw an exception.
    The type initializer for 'ILOG.OPL.opl_lang_wrap' threw an exception

    If I execute the examples that come with OPL, I receive exactly the same error.
    Examples located at C:\ILOG\OPL63\examples\opl_interfaces\dotnet\x86_.net2005_8.0\VisualBasic

    My configuration is the following:
    • Windows 7 x64
    • OPL 6.3 Analyst Studio (32 bits)
    • Visual Studio 2005, .Net Framework 2.0, Language: Visual basic

    As I said before, all worked fine with Windows 7 32 bits.

    I tried copying .dll to bin folder of my application, but it doesnt work, too.
    My PATH enviroment variable have the following value:
    c:\ILOG\OPL63\bin\x86_win32

    I tried installing Cplex Studio 12.2 Preview version (32 bits) and I had the same problem (same error). I cant even run the interface examples succesfully (Cutstock for example).

    I hope you can help me.
    Thanks in advance.
    Marry Christmas.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: OPL 32-bits on Windows 7 x64 problem

    Posted Sun December 25, 2011 07:22 PM

    Originally posted by: SystemAdmin


    Is your Visual Basic 2005 a 32 or a 64 bit version, and is the target being built for a 32 or a 64 bit machine -> Project properties -> Compile -> Platform? Moreover, this version of OPL (6.3) still requires licenses. Is the license file still valid after the change of the OS from 32 to 64 bit? You could check this by opening the IDE by double clicking the 'oplide.exe' file in the C:\ILOG\OPL63\oplide folder.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: OPL 32-bits on Windows 7 x64 problem

    Posted Tue December 27, 2011 02:40 PM

    Originally posted by: Marcelo.cl


    Mate, thanks for your help.
    The problem was solved changing target CPU from "Any CPU" to "x86" in Visual Studio (Project properties -> Compile -> Advanced compile options -> target CPU).
    Thanks again
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: OPL 32-bits on Windows 7 x64 problem

    Posted Tue December 27, 2011 02:52 PM

    Originally posted by: SystemAdmin


    Thats good. Thank you for sharing the solution.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer