How to use pywrapcp.SolveModelWithSat?

79 views
Skip to first unread message

bron silent

unread,
Aug 23, 2022, 2:03:15 AM8/23/22
to or-tools-discuss
Hi, there. I am trying to use pywrapcp.SolveModelWithSat method, I read the doc and find this method can invoke CP-SAT to solve one vehicle routing problem. But somehow I tried a very simple three point problem, it returns a False which means infeasible accroding to the doc. Would anybody used this method tell me how to use this method? the discription of this method really makes me puzzled. Thanks a lot  

Laurent Perron

unread,
Aug 23, 2022, 2:24:33 AM8/23/22
to or-tools-discuss
It is an internal method that works on a sunset of routing model. It should not be called directly.

There is a parameter that controls whether CP-SAT will be used.  


Le mar. 23 août 2022, 08:03, bron silent <lexi.g...@gmail.com> a écrit :
Hi, there. I am trying to use pywrapcp.SolveModelWithSat method, I read the doc and find this method can invoke CP-SAT to solve one vehicle routing problem. But somehow I tried a very simple three point problem, it returns a False which means infeasible accroding to the doc. Would anybody used this method tell me how to use this method? the discription of this method really makes me puzzled. Thanks a lot  

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/a8807e78-781c-494b-83ef-c4d71786c9e6n%40googlegroups.com.

bron silent

unread,
Aug 23, 2022, 2:58:40 AM8/23/22
to or-tools-discuss
Thanks for your reply,  and would you please specify which parameter can I use to control  CP-SAT`s usage?

Is the parameter below? 
'''
def SolveModelWithSat(model: RoutingModel, search_parameters: operations_research::RoutingSearchParameters const &, initial_solution: Assignment, solution: Assignment) -> 'bool'
'''

Laurent Perron

unread,
Aug 23, 2022, 3:41:18 AM8/23/22
to or-tools...@googlegroups.com

bron silent

unread,
Aug 23, 2022, 4:02:32 AM8/23/22
to or-tools-discuss
many thanks for your reply!
Reply all
Reply to author
Forward
0 new messages