diff --git a/docs/python/ortools/algorithms/pywrapknapsack_solver.html b/docs/python/ortools/algorithms/pywrapknapsack_solver.html index 21e8c28c5d..84e93903ce 100644 --- a/docs/python/ortools/algorithms/pywrapknapsack_solver.html +++ b/docs/python/ortools/algorithms/pywrapknapsack_solver.html @@ -3,7 +3,7 @@
- +Base class of the local search operators dedicated to path modifications (a path is a set of nodes linked together by arcs). This family of neighborhoods supposes they are handling next variables representing the arcs (var[i] represents the node immediately after i on a path). Several services are provided: - arc manipulators (SetNext(), ReverseChain(), MoveChain()) - path inspectors (Next(), IsPathEnd()) - path iterators: operators need a given number of nodes to define a
+ Base class of the local search operators dedicated to path modifications (a path is a set of nodes linked together by arcs). This family of neighborhoods supposes they are handling next variables representing the arcs (var[i] represents the node immediately after i on a path). Several services are provided: - arc manipulators (SetNext(), ReverseChain(), MoveChain()) - path inspectors (Next(), Prev(), IsPathEnd()) - path iterators: operators need a given number of nodes to define a
neighbor; this class provides the iteration on a given number of (base)
nodes which can be used to define a neighbor (through the BaseNode method) Subclasses only need to override MakeNeighbor to create neighbors using the services above (no direct manipulation of assignments).class PathOperator(IntVarLocalSearchOperator):
- r""" Base class of the local search operators dedicated to path modifications (a path is a set of nodes linked together by arcs). This family of neighborhoods supposes they are handling next variables representing the arcs (var[i] represents the node immediately after i on a path). Several services are provided: - arc manipulators (SetNext(), ReverseChain(), MoveChain()) - path inspectors (Next(), IsPathEnd()) - path iterators: operators need a given number of nodes to define a neighbor; this class provides the iteration on a given number of (base) nodes which can be used to define a neighbor (through the BaseNode method) Subclasses only need to override MakeNeighbor to create neighbors using the services above (no direct manipulation of assignments)."""
+ r""" Base class of the local search operators dedicated to path modifications (a path is a set of nodes linked together by arcs). This family of neighborhoods supposes they are handling next variables representing the arcs (var[i] represents the node immediately after i on a path). Several services are provided: - arc manipulators (SetNext(), ReverseChain(), MoveChain()) - path inspectors (Next(), Prev(), IsPathEnd()) - path iterators: operators need a given number of nodes to define a neighbor; this class provides the iteration on a given number of (base) nodes which can be used to define a neighbor (through the BaseNode method) Subclasses only need to override MakeNeighbor to create neighbors using the services above (no direct manipulation of assignments)."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
@@ -11630,11 +11636,11 @@ nodes which can be used to define a neighbor (through the BaseNode method) Subcl
Subclasses
Methods
@@ -13120,7 +13126,7 @@ RoutingModel model(manager);
def GetAllDimensionNames(self) -> "std::vector< ::std::string >":
+def GetAllDimensionNames(self) -> "std::vector< std::string >":
r""" Outputs the names of all dimensions added to the routing engine."""
return _pywrapcp.RoutingModel_GetAllDimensionNames(self)
@@ -14618,6 +14630,19 @@ and end at the same node (single depot), this is the node returned.
+def GetLocalDimensionCumulMPOptimizers(self)
+def GetLocalDimensionCumulMPOptimizers(self) -> "std::vector< std::unique_ptr< operations_research::LocalDimensionCumulOptimizer > > const &":
+ return _pywrapcp.RoutingModel_GetLocalDimensionCumulMPOptimizers(self)
+
def GetLocalDimensionCumulOptimizers(self)
+def GetMutableLocalCumulMPOptimizer(self, dimension)
+def GetMutableLocalCumulMPOptimizer(self, dimension: "RoutingDimension") -> "operations_research::LocalDimensionCumulOptimizer *":
+ return _pywrapcp.RoutingModel_GetMutableLocalCumulMPOptimizer(self, dimension)
+
def GetMutableLocalCumulOptimizer(self, dimension)
Get the primary constrained dimension, or an empty std::string if it is unset.
Get the primary constrained dimension, or an empty string if it is unset.
def GetPrimaryConstrainedDimension(self) -> "std::string const &":
- r""" Get the primary constrained dimension, or an empty std::string if it is unset."""
+ r""" Get the primary constrained dimension, or an empty string if it is unset."""
return _pywrapcp.RoutingModel_GetPrimaryConstrainedDimension(self)
std::vector
Creates a constraint that enforces that left is lexicographically less than right.
def LexicalLess(self, left: "std::vector< operations_research::IntVar * > const &", right: "std::vector< operations_research::IntVar * > const &") -> "operations_research::Constraint *":
- r""" std::vector<IntVar*>* const sorted); Creates a constraint that enforces that left is lexicographically less than right."""
+ r""" Creates a constraint that enforces that left is lexicographically less than right."""
return _pywrapcp.Solver_LexicalLess(self, left, right)
GetGlobalDimensionCumulOptimizersGetHardTypeIncompatibilitiesOfTypeGetHomogeneousCostGetLocalDimensionCumulMPOptimizersGetLocalDimensionCumulOptimizersGetMutableDimensionGetMutableGlobalCumulOptimizerGetMutableLocalCumulMPOptimizerGetMutableLocalCumulOptimizerGetNonZeroCostClassesCountGetNumOfSingletonNodes
+def FindErrorInModelProto(input_model)
+def FindErrorInModelProto(input_model: "operations_research::MPModelProto const &") -> "std::string":
+ return _pywraplp.FindErrorInModelProto(input_model)
+
class LinearExpr
-(*args, **kwargs)
Holds an integer linear expression.
@@ -5765,11 +5780,11 @@ model.Add(cp_model.LinearExpr.ScalProd(expressions, coefficients) >= 0)