@@ -56,8 +56,8 @@ namespace Gecode {
5656 /* *
5757 * \brief Result of comparing two spaces according to their objectives
5858 *
59- * Adding Space::compare changes the ordinary C++ ABI of Space by extending
60- * its virtual function table .
59+ * Space::compare extends Space's virtual function table and changes its
60+ * C++ ABI .
6161 */
6262 enum SpaceComparison {
6363 SC_BETTER , // /< The receiver has a better objective
@@ -2102,19 +2102,16 @@ namespace Gecode {
21022102 /* *
21032103 * \brief Compare this space's objective with \a other
21042104 *
2105- * The comparison is read-only and receiver-relative. Implementations may
2106- * require objective information sufficient for the relation they report.
2107- * The model owns this readiness rule: comparison does not require every
2108- * objective variable to be assigned when the model can establish a sound
2109- * result from the available information.
2105+ * The comparison is read-only and receiver-relative. The model defines
2106+ * the objective information needed for a sound result; not every objective
2107+ * variable must be assigned.
21102108 * The default implementation throws SpaceNoComparison.
21112109 * SC_INCOMPARABLE is a model-defined ordering result, not missing
21122110 * information. Current exact best-solution engines reject it.
21132111 *
21142112 * Optimization models overriding constrain with a different objective
2115- * must also override compare.
2116- * constrain remains responsible for posting improvement restrictions;
2117- * search does not use it to rank two solutions.
2113+ * must also override compare. constrain posts improvement restrictions;
2114+ * search uses compare to rank solutions.
21182115 *
21192116 * Exact best-solution search requires SC_BETTER to be irreflexive and
21202117 * transitive, SC_WORSE to be its reverse, and SC_EQUIVALENT to be
@@ -2130,13 +2127,13 @@ namespace Gecode {
21302127 * float optimization spaces compare the incumbent bound used by their
21312128 * cuts: the upper bound for minimization and lower bound for maximization.
21322129 * This ranking is independent of the step used for approximate cuts.
2133- * FlatZinc retains its interval-valued cuts and instead ranks the lower
2134- * bound for minimization and upper bound for maximization.
2130+ * FlatZinc uses interval-valued cuts and ranks the lower bound for
2131+ * minimization and upper bound for maximization.
21352132 *
21362133 * After compare throws during BAB, PBS, or RBS search, destroy and
21372134 * recreate the public search engine. An internal engine interface that
21382135 * explicitly supports reset can establish a new search after failure;
2139- * other post-exception use has no recovery guarantee.
2136+ * other use after an exception has no recovery guarantee.
21402137 */
21412138 GECODE_KERNEL_EXPORT virtual SpaceComparison
21422139 compare (const Space& other) const ;
0 commit comments