Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class SimpleDynamicPartition
Note: This documentation is automatically generated.
A subset of the API of DynamicPartition without backtrack support. The
Refine() here is about twice as fast, but we have limited query support until
a batch ComputeElementsByPart() is called.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eSimpleDynamicPartition\u003c/code\u003e is a subset of the \u003ccode\u003eDynamicPartition\u003c/code\u003e class in OR-Tools, designed for faster refinement without backtracking support.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRefine\u003c/code\u003e method is approximately twice as fast as in \u003ccode\u003eDynamicPartition\u003c/code\u003e, but query support is limited until \u003ccode\u003eComputeElementsByPart\u003c/code\u003e is called.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods like \u003ccode\u003eNumElements\u003c/code\u003e, \u003ccode\u003eNumParts\u003c/code\u003e, \u003ccode\u003ePartOf\u003c/code\u003e, and \u003ccode\u003eSizeOfPart\u003c/code\u003e to manage and query the elements and partitions.\u003c/p\u003e\n"],["\u003cp\u003eThis class is particularly useful when backtracking is not necessary and faster refinement is desired.\u003c/p\u003e\n"]]],["`SimpleDynamicPartition` is a C++ class, a faster subset of `DynamicPartition` without backtrack. It initializes with a number of elements. Key actions include `Refine`, which accepts a subset to refine partitions. Methods `NumElements` and `NumParts` return the total number of elements and partitions, respectively. `PartOf` identifies the partition for a given element, and `SizeOfPart` returns the size of a specified partition. Limited query support is provided.\n"],null,[]]