@@ -74,7 +74,7 @@ BranchingScheme::Direction default_direction(
7474{
7575 const BinType& bin_type = instance.bin_type (bin_type_id);
7676 bool lengthwise = (bin_type.x_max - bin_type.x_min ) >= (bin_type.y_max - bin_type.y_min );
77- switch (instance.parameters ().leftover_corner ) {
77+ switch (instance.parameters ().anchor_corner ) {
7878 case Corner::BottomLeft: {
7979 return (lengthwise)?
8080 BranchingScheme::Direction::LeftToRightThenBottomToTop:
@@ -93,6 +93,7 @@ BranchingScheme::Direction default_direction(
9393 BranchingScheme::Direction::TopToBottomThenRightToLeft;
9494 }
9595 }
96+ return BranchingScheme::Direction::LeftToRightThenBottomToTop;
9697}
9798
9899}
@@ -1226,7 +1227,7 @@ BranchingScheme::Node BranchingScheme::child_tmp(
12261227 node.y_max = xy.y + mm.second .y ;
12271228 }
12281229
1229- switch (instance ().parameters ().leftover_corner ) {
1230+ switch (instance ().parameters ().anchor_corner ) {
12301231 case Corner::BottomLeft: {
12311232 node.leftover_value = (bin_type.x_max - bin_type.x_min ) * (bin_type.y_max - bin_type.y_min )
12321233 - (node.x_max - bin_type.x_min ) * (node.y_max - bin_type.y_min );
@@ -2135,14 +2136,14 @@ Solution BranchingScheme::to_solution(
21352136 solution.write (" solution_irregular.json" );
21362137 throw std::runtime_error (
21372138 FUNC_SIGNATURE + " ; "
2138- " node->xe_max: " + std::to_string (node->xe_max ) + " ; "
2139+ " node->xe_max: " + std::to_string (node->x_max ) + " ; "
21392140 " solution.x_max(): " + std::to_string (solution.x_max ()) + " ; "
21402141 " d: " + std::to_string ((int )node->last_bin_direction ) + " ." );
21412142 }
21422143 if (!equal (node->y_min , solution.y_min ())) {
21432144 throw std::runtime_error (
21442145 FUNC_SIGNATURE + " ; "
2145- " node->ye_max: " + std::to_string (node->ye_max ) + " ; "
2146+ " node->ye_max: " + std::to_string (node->y_max ) + " ; "
21462147 " solution.y_max(): " + std::to_string (solution.y_max ()) + " ; "
21472148 " d: " + std::to_string ((int )node->last_bin_direction ) + " ." );
21482149 }
0 commit comments