Writing a model to a file

263 views
Skip to first unread message

Ricardo Fukasawa

unread,
Oct 11, 2023, 2:13:36 PM10/11/23
to or-tools-discuss
I am trying to debug a CP-SAT model and was wondering if there is any way to write a model to a file (in any format that I can open in a text editor) so I can check that what I am trying to do is actually what is being done. 

Laurent Perron

unread,
Oct 11, 2023, 3:25:53 PM10/11/23
to or-tools...@googlegroups.com
model.ExportToFile('mymodel.pb.txt')

It is not exactly human friendly, but it can help
Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00



Le mer. 11 oct. 2023 à 20:13, Ricardo Fukasawa <rfuk...@gmail.com> a écrit :
I am trying to debug a CP-SAT model and was wondering if there is any way to write a model to a file (in any format that I can open in a text editor) so I can check that what I am trying to do is actually what is being done. 

--
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/5b9a6ae5-b4b8-4e73-8375-5b6a8a002e20n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages