I am using CP optimization, and for my formulation I need the code read the values from 3th line of my input lines. I have 6 lines data. For example If my current location is X1 I want that code goes to X4 and read its data. I have used the following code but I have got error that" CP cannot extract expression" would you please help me. Thanks
I have attached the code, lines 85 and 86 are the mentined code. And lines 135, 136 are my errors in objective functions.