For new issues, better to log new questions.
Original Message:
Sent: Thu January 01, 2026 02:53 AM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
Happy New Year, Alex!
Is there a way to overcome this error:
Tuple component type not supported., "2147483647".
------------------------------
Stevie Turkington
Original Message:
Sent: Tue December 30, 2025 03:39 AM
From: ALEX FLEISCHER
Subject: CP Optimizer - Solution Issue?
Hi,
you could either handle that through the API call or directly in OPL.
Let me change slightly this
using CP;int nbKids=300;float costBus40=500;float costBus30=400;tuple res{ key int si; int nb;}{res} r= {}; dvar int+ nbBus40;dvar int+ nbBus30; minimize costBus40*nbBus40 +nbBus30*costBus30; subject to{ 40*nbBus40+nbBus30*30>=nbKids;}execute{ writeln("nbBus40 = ",nbBus40," and nbBus30 = ",nbBus30," and the cost is ",costBus40*nbBus40 +nbBus30*costBus30); r.add(nbBus40,nbBus30);}main{cp.param.SearchType=24;cp.param.workers=1;thisOplModel.generate();cp.startNewSearch();while(cp.next()) { thisOplModel.postProcess(); }writeln("r = ",thisOplModel.r);}
which gives
nbBus40 = 8 and nbBus30 = 0 and the cost is 4000nbBus40 = 3 and nbBus30 = 6 and the cost is 3900nbBus40 = 6 and nbBus30 = 2 and the cost is 3800r = {<8 0> <3 6> <6 2>}
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Mon December 29, 2025 07:15 PM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
Thanks, Alex! I managed to get this working for my model.
Is there any way to have all feasible solution data downloadable after the run ends (via timeout), rather than only see the most recent feasible solution?
------------------------------
Stevie Turkington
Original Message:
Sent: Mon December 29, 2025 03:55 AM
From: ALEX FLEISCHER
Subject: CP Optimizer - Solution Issue?
Hi,
you need to have your solutions in a tuple set.
Let me give your an example with the zoo example.
In the studio within watsonx ai, in OPL you will write
int nbKids=300;float costBus40=500;float costBus30=400;dvar int+ nbBus40;dvar int+ nbBus30;minimize costBus40*nbBus40 +nbBus30*costBus30;subject to{ 40*nbBus40+nbBus30*30>=nbKids;}tuple res{ key int si; int nb;}{res} r= {};execute{ r.add(40,nbBus40); r.add(30,nbBus30);}
and then you will see
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
Original Message:
Sent: Sat December 27, 2025 12:57 PM
From: Stevie Turkington
Subject: CP Optimizer - Solution Issue?
I am running the code directly in watsonx (decision optimization) cloud service, not through Optimization Studio to the cloud. I still cannot see what the feasible solutions are. How can I?
------------------------------
Stevie Turkington
Original Message:
Sent: Sun November 23, 2025 12:16 PM
From: ALEX FLEISCHER
Subject: CP Optimizer - Solution Issue?
Hi
in the OPL documentation you can see

have you done that ?
regards
regards
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
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
------------------------------