Original Message:
Sent: Sat November 22, 2025 10:07 PM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
I am running the model on watsonx Machine Learning. Using the same code (but now with the data in the model), I get an optimal solution but I can't find out which values got assigned to the decision variables (DV). Note, I am using 'using CP;' at the top.
What is required to obtain this data from the solution process? It displays 3 solutions were found but all I see is what the optimal value is. I'm more interested in the values assigned to the DVs.
Note, there is no data in the prepare data section of the scenario. That is contained in the model itself. Uploading the .dat file, associated with the model, in the prepare data section doesn't upload cleanly.
eg: int startnum4 = ...;
becomes
int startnum4 = 97;
------------------------------
Stevie Turkington
Original Message:
Sent: Tue November 18, 2025 06:07 AM
From: ALEX FLEISCHER
Subject: CP Optimizer - Solution Issue?
Hi,
if you get this issue after a while you could try
execute { cp.param.FailLimit = 5000;}
in order not to let CPOptimizer explore for too long.
You could also set a time limit.
You can also first try with a smaller instance.
regards
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Mon November 17, 2025 10:38 PM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
Thanks for your help, Alex.
I am encountering "Opl process is not responding, you must relaunch the run configuration" an awful lot. In cmd using oplrun.exe, I think the engine is stuck at node 0 - nothing further gets displayed. I don't believe any process stops responding in the cmd instance. I give up after a while, though.
Are there equivalent settings for CP Optimizer I can set in IDE that refer to the following suggestions: here and here #2
------------------------------
Stevie Turkington
Original Message:
Sent: Mon November 10, 2025 04:45 PM
From: ALEX FLEISCHER
Subject: CP Optimizer - Solution Issue?
Hi,
let me share a tiny example that works fine:
using CP;range r=1..3;{int} s={1,3};dvar int x;dvar int y in r;dvar int z in 1..3;dvar int t;subject to{ x in {1,2,3}; y==z; t in s;}
and I shared a few OPL scripting examples at here
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Mon November 10, 2025 03:32 PM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
Thanks, I'll give that a go.
I am also trying to define particular values three variables can take on. These variables are also mentioned in the subject to area, and I'm getting plenty of 'not a range type' through to 'Operator not available for dexpr int - {string}.' messages trying the various ways to get this done (I have no clue what to do, and suggestions from ChatGPT and other posts in this forum haven't resulted in no errors appearing).
How do I go about doing this in ILOG Ilog scripting language? If there are multiple parts, where does each go (eg define parameters section, define decision variables section, subject to (constraints) section.
------------------------------
Stevie Turkington
Original Message:
Sent: Thu November 06, 2025 01:54 AM
From: ALEX FLEISCHER
Subject: CP Optimizer - Solution Issue?
Hi,
can you share a small model so that other users could try ?
And just to be sure , do you get the same issue if you turn
ct 1: dec1 + dec2 == dec3;
into
dec1 + dec2 == dec3;
?
regards
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Thu November 06, 2025 01:47 AM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
I have a model written in IBM Ilog Script, invoking and using CP optimizer [first line is using CP;]. IBM Optimization Studio reports 1 solution, but when reviewing the variables and constraints, the values don't compute.
For example, a decision variable (dec3) equals -10, but the two decision variables (dec1 and dec2) don't add to -10 (call this constraint1). This occurs multiple times over other constraints involving other decision variables.
ct 1: dec1 + dec2 == dec3;
Yet, this is the solution I'm being provided with. There is nothing displayed in the relaxation tab. I don't get any errors that might suggest the programming language used is problematic, or any other issues.
Is this supposed to be how it works?
------------------------------
Stevie Turkington
------------------------------