[CP-SAT] new sample;improve no_overlap_2d code

This commit is contained in:
Laurent Perron
2024-03-22 15:55:16 +01:00
committed by Corentin Le Molgat
parent 02a53ee8d0
commit 97cf1237e0
12 changed files with 672 additions and 5 deletions

View File

@@ -588,6 +588,11 @@ FindRectanglesResult FindRectanglesWithEnergyConflictMC(
const std::vector<RectangleInRange>& intervals, absl::BitGenRef random,
double temperature, double candidate_energy_usage_factor);
// Render a packing solution as a Graphviz dot file. Only works in the "neato"
// or "fdp" Graphviz backends.
std::string RenderDot(std::pair<IntegerValue, IntegerValue> bb_sizes,
absl::Span<const Rectangle> solution);
} // namespace sat
} // namespace operations_research