
* (#cp_model.CpSolverSolutionCallback): A general method for implementing callbacks. The following methods implement callbacks that the solver calls each time it finds a new solution. * (#cp_model.CpSolver): Methods for solving a model and evaluating solutions. * (#cp_model.CpModel): Methods for creating models, including variables and constraints. The following two sections describe the main methods for building and solving CP-SAT models. """Methods for building and solving CP-SAT models. # See the License for the specific language governing permissions and # limitations under the License. # You may obtain a copy of the License at # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # Copyright 2010-2021 Google LLC # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License.

Rather than for solving specific optimization problems. Other methods and functions listed are primarily used for developing OR-Tools, LinearExpr: Methods for creating constraintsĪnd the objective from large arrays of coefficients.Constraint: A few utility methods for modifying.Print both intermediate solutions and objective values.Īdditional methods for solving CP-SAT models: (#cp_model.VarArrayAndObjectiveSolutionPrinter): Print intermediate solutions (variable values, time). Print objective values and elapsed time for intermediate solutions. Solver calls each time it finds a new solution.Ī general method for implementing callbacks. The following methods implement callbacks that the Models, including variables and constraints.



The following two sections describe the main Methods for building and solving CP-SAT models.
