Skip to content

Commit

Permalink
Fix internal diving
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Jan 5, 2025
1 parent b46d9d6 commit fed78fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/column_generation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,13 @@ const ColumnGenerationOutput columngenerationsolver::column_generation(
= (model.rows[element.row].upper_bound
- row_values_tmp[element.row])
/ element.coefficient;
value = (std::min)(value, v);
value = (std::min)(value, std::floor(v));
} else {
Value v
= (row_values_tmp[element.row]
- model.rows[element.row].lower_bound)
/ (-element.coefficient);
value = (std::min)(value, v);
value = (std::min)(value, std::floor(v));
}
}
//std::cout << "value " << value << std::endl;
Expand Down

0 comments on commit fed78fa

Please sign in to comment.