LIsting all constraints added

43 views
Skip to first unread message

Rogerio Atem de Carvalho

unread,
Apr 17, 2013, 9:13:25 AM4/17/13
to or-tools...@googlegroups.com
Hi,

I would like to list all the constraints added to a given solver, I tried solver.constraint() but it seems to return the number of constraints.

Thanks

Laurent Perron

unread,
Apr 17, 2013, 9:48:05 AM4/17/13
to or-tools-discuss
Actually, I am reluctant to give this API directly.
You can always visit the model, see the ModelStatistics or PrintModel model visitors in src/constraint_solver/utilities.cc for instance.

--Laurent

Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00




--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages