Skip to content

v6.9 (2018-09)

Compare
Choose a tag to compare
@lperron lperron released this 19 Sep 09:10
· 4915 commits to master since this release

Updated dependencies

  • Protobuf 3.5.1 -> 3.6.1
  • [Optional] SCIP 4.0 -> 6.0

CP-SAT

  • Breaking change API. Full documentation here.
    • Expose ModelStats and CpSolverResponseStats in Python, Java and C#.
    • Rename SolveWithSolutionObserver to SolveWithSolutionCallback in Python (#841).
    • Rename NewSolution to OnSolutionCallback on solution callback in Python.
      Make sure to call super in __init__ e.g.:
      class MySolutionCallback(cp_model.CpSolverSolutionCallback):
        def __init__(self):
          cp_model.CpSolverSolutionCallback.__init__(self)
          self.__solution_count = 0
        
        def OnSolutionCallback(self):
          print('Solution {}, time = {}s, objective = {}, makespan = {}'.format(
          self.__solution_count,
          self.WallTime(),
          self.ObjectiveValue(),
          self.Value(makespan)))
          self.__solution_count += 1
    • Expose StopSearch on solution callback in Python, Java and C#. Documentation here.
  • Improve Python docstring documentation. Documentation here.
  • Complete Java implementation of the solver interface and cookbook updated.
  • Implement modulo.
  • Change implementation of reservoir: Add API with boolean to specify optional draining/filling events.

Linear Solver

  • Expose InterruptSolve in Java and C#.

Constraint Solver

  • Expose SolutionCollector director in C#.

Python

  • Add support for Python 3.7.
  • When compiling from source: prefer python3 over python2 when detecting python.

.Net

  • Complete rewrite of the .NET layer.
    • Provide a Google.OrTools NetStandard 2.0 Nuget package compatible with Runtime IDentifier win-x64, linux-x64 and osx-x64.
    • Provide a Google.OrTools.FSharp Nuget package.
  • Add project file for all .Net examples.
  • Update all F# script examples (.fsx) to regular F# project (.fs).
  • Add documentation on .Net package build generation here.

Flatzinc

  • Add support for sets in Flatzinc (using nosets.mzn)

Contributions

  • Add support for Binder Thanks to Kevin Mader.
  • Make DecisionVisitor a director type in Java bindings Thanks to Jeremy Apthorp.

Full list of commits since v6.8 here