lanl / clp

Go language bindings for the COIN-OR Linear Programming library
BSD 3-Clause "New" or "Revised" License
44 stars 3 forks source link

methods to get and set iteration and time limits #4

Closed jonreiter closed 5 years ago

jonreiter commented 5 years ago

adds wrappers for set/get max iterations and max seconds. along with tests. the wrappers work on any clpmodel while the tests run on just the simplex object.

spakin commented 5 years ago

Looks fine. Thanks for the pull request.

spakin commented 5 years ago

Note that in 73198087747362cff66bbd2c0c2c3fa02c4801fe I renamed GetMaxSeconds to MaxSeconds and GetMaxIterations to MaxIterations as per Effective Go's naming conventions.