CPLEX Optimization node

The CPLEX Optimization node provides the ability to use complex mathematical (CPLEX) based optimization via an Optimization Programming Language (OPL) model file. This functionality was available in the IBM® Analytical Decision Management product that's no longer supported, but you can also use the CPLEX node in SPSS® Modeler without requiring IBM Analytical Decision Management.

For more information about CPLEX optimization and OPL, see the IBM ILOG CPLEX Optimization Studio documentation.

The CPLEX Optimization node supports multiple data sources, or multiple dimensional incoming data. You can connect several nodes to the CPLEX Optimization node, and each prior node can be utilized to provide data to OPL model computing – set as individual tuple sets with individual field mappings.

When outputting the data generated by the CPLEX Optimization node, the original data from the data sources can be output together as single indexes, or as multiple dimensional indexes of the result.

Notes:
  • When running a stream containing a CPLEX Optimization node on IBM SPSS Modeler Server, by default the embedded Community edition CPLEX library is used. It has a limitation of 1000 variables and 1000 constraints. If you install the full edition of IBM ILOG CPLEX and want to use the full edition's CPLEX engine instead, which doesn't have such limitations, complete the following step for your platform.
    • On Windows, edit options.cfg and add the OPL library path. For example:
      cplex_opl_lib_path="<CPLEX_path>\opl\bin\<Platform_dir>"
      Where <CPLEX_path> is the CPLEX installation directory such as C:\Program Files\IBM\ILOG\CPLEX_Studio127, and <Platform_dir> is the platform-specific directory such as x64_win64.
    • On Linux, edit modelersrv.sh and add the OPL library path. For example:
      CPLEX_OPL_LIB_PATH=<CPLEX_path>/opl/bin/<Platform_dir>
      Where <CPLEX_path> is the CPLEX installation directory such as /root/Libs_127_FullEdition/Linux_x86_64, and <Platform_dir> is the platform-specific directory such as x86-64_linux.
Note:
  • When running a stream containing a CPLEX Optimization node in SPSS Modeler Solution Publisher, by default the embedded Community edition CPLEX library is used. It has a limitation of 1000 variables and 1000 constraints. If you install the full edition of IBM ILOG CPLEX and want to use the full edition's CPLEX engine instead, which doesn't have such limitations, complete the following step for your platform.
    • On Windows, add the OPL library path as a command line argument for modelerrun.exe. For example:
      -o cplex_opl_lib_path="<CPLEX_path>\opl\bin\<Platform_dir>"
      Where <CPLEX_path> is the CPLEX installation directory such as C:\Program Files\IBM\ILOG\CPLEX_Studio127, and <Platform_dir> is the platform-specific directory such as x64_win64.
    • On Linux, edit modelerrun and add the OPL library path. For example:
      CPLEX_OPL_LIB_PATH=<CPLEX_path>/opl/bin/<Platform_dir>
      Where <CPLEX_path> is the CPLEX installation directory such as /root/Libs_127_FullEdition/Linux_x86_64, and <Platform_dir> is the platform-specific directory such as x86-64_linux.
  • CPLEX isn't supported on macOS. You can use the node (add it to your stream, edit its properties, etc), but you can't run it.