change seed in cp solver c++? #2458
-
i am using cp solver to solve a routing problem i am trying unsuccessfully to introduce randomness using or tools 7.1 if you need more info i will be more than happy to help |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
in C++ (on master branch!) we have: or-tools/ortools/constraint_solver/constraint_solver.cc Lines 89 to 92 in 2fc5d0c or-tools/ortools/constraint_solver/constraint_solver.h Lines 92 to 94 in 2fc5d0c which won't be binded in Python, Java or .Net |
Beta Was this translation helpful? Give feedback.
-
How can i achieve the same in Python ? |
Beta Was this translation helpful? Give feedback.
-
@Mizux - Is this still not possible to control via Python? And does it mean that if we don't change it, it will be deterministic? |
Beta Was this translation helpful? Give feedback.
-
Just parse the header file: Which is correctly wrapped in python. |
Beta Was this translation helpful? Give feedback.
Just parse the header file:
or-tools/ortools/constraint_solver/constraint_solver.h
Line 2929 in 5425ded
Which is correctly wrapped in python.