Closed TeXitoi closed 3 years ago
can you send us the .pbtxt model ?
So maybe the bug is still there, but we have become pedantic with hints, asking that the variable appears only once
Starting CP-SAT solver.
Setting number of workers to 16
Parameters: log_search_progress: true num_search_workers: 16
Invalid model: The solution hint contains duplicate variables like the variable with index #124
CpSolverResponse summary:
status: MODEL_INVALID
objective: 0
best_bound: 0
booleans: 0
conflicts: 0
branches: 0
propagations: 0
integer_propagations: 0
restarts: 0
lp_iterations: 0
walltime: 0.000176
usertime: 0.000176
deterministic_time: 0
primal_integral: 0
Mmm, strange, will double check hint.
Double checked, I can't see how I can have duplicates. Maybe that's the LNS generated model that duplicates hints?
can you send us the original model ? (model.ExportToFile("issue2779.pb.txt") ? (provided it is mapped from Rust to C++).
I'll try, but can't guarantee as that's a chain of local optimization, and cp sat with 8 threads might not be deterministic.
Seen a second time, so I should be able to find it by insisting.
My rust protobuf library don't support pbtxt, is it OK if I give a binary format, or I should bind something to c++ to have the text version?
binary is fine. Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53 00
Le mer. 22 sept. 2021 à 17:42, Guillaume P. @.***> a écrit :
Seen a second time, so I should be able to find it by insisting.
My rust protobuf library don't support pbtxt, is it OK if I give a binary format, or I should bind something to c++ to have the text version?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/2779#issuecomment-925051099, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3PWSHMBV4V2UCWDRB3UDH2PFANCNFSM5EOUNETQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I suppose that's the same bug, and potentially related to #2784 I have an assertion fail:
2021-09-23 09:43:28: F0226 21:36:06.060791 10896 cp_model_solver.cc:3175] Check failed: SolutionIsFeasible( model_proto, std::vector<int64_t>(response->solution().begin(), response->solution().end()), &mapping_proto, &postsolve_mapping) final postsolved solution
while solving https://texitoi.eu/texitoi/bugs/check_failed_solution_is_feasible.pb
The last proto solves successfully on the master branch. Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53 00
Le jeu. 23 sept. 2021 à 09:49, Guillaume P. @.***> a écrit :
I suppose that's the same bug, and potentially related to #2784 https://github.com/google/or-tools/issues/2784 I have an assertion fail:
2021-09-23 09:43:28: F0226 21:36:06.060791 10896 cp_model_solver.cc:3175] Check failed: SolutionIsFeasible( model_proto, std::vector
(response->solution().begin(), response->solution().end()), &mapping_proto, &postsolve_mapping) final postsolved solution while solving https://texitoi.eu/texitoi/bugs/check_failed_solution_is_feasible.pb
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/2779#issuecomment-925578389, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3NGHOXFITWXKWGB2XLUDLLYFANCNFSM5EOUNETQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I can't reproduce on master. Closing it.
What version of OR-Tools and what language are you using? Version: v9.0 Language: rust via C++
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT
What operating system (Linux, Windows, ...) and version?
Debian oldstable 10.10
What did you do?
During a search:
dumped file: https://texitoi.eu/texitoi/.pbtxt
What did you expect to see
No crash
What did you see instead?
A crash
Anything else we should know about your project / environment