CP-SAT | OR-Tools: Get existing variable by name?
Is it possible to get an existing variable by its name? Something like:
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: Select max. 5 out of 10 total options?
I have an optimization problem where I need to pick max. 5 out of 10 available options according to different criteria. I was wondering how to encode this constraint. Is any of the 3 alternative versions below better/faster than the others? If not, I would go with the first one, as it is the most concise…
CP-SAT | OR-Tools: at most one of two different arrays (OR-ed). How to declare constraint? “Ellipsis”?
I have two arrays of model variables – arr1
and arr2
. I would like to declare a constraint that would forbid a situation when there is at least 1 true
in arr1
AND at least 1 true
in arr2
. (There can be multiple true
‘s in arr1
, as long as arr2
has only false
‘s – and vice versa. It is also acceptable if there is no true
in neither array).
Scheduling problem : how to hanlde stock variation hover tasks
I’m trying to optimize a job shop manufacturing problem. I’ve managed to implement my constraints of tasks depending on the end of other tasks, optimization with respect to target dates and earliest/latest scheduling, thanks to the CP SAT solver in python.