ankane / or-tools-ruby

Operations research tools for Ruby
Apache License 2.0
171 stars 20 forks source link

Print model? #20

Closed stevenshack closed 3 years ago

stevenshack commented 3 years ago

In the or-tools c++ interface there is solver.ExportModelAsLpFormat to print out model details. This would be useful for debug purposes if it were exposed on ruby land. BTW thanks for the good work on this project.

ankane commented 3 years ago

Hey @stevenshack, thanks for the suggestion! Added in the commit above.

stevenshack commented 3 years ago

No problem. Is there an equivalent for VRP? I actually thought the VRP code was using a linear solver under the hood.

ankane commented 3 years ago

Not that I'm aware of. OR-Tools routing code uses the CP solver.