Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/src/io/mps_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ void mps_writer_t<i_t, f_t>::write(const std::string& mps_file_path)

// iterate over the constraint matrix and add the nonzeros to the integral and continuous col_nnzs
// maps
for (size_t csr_row = 0; csr_row < (size_t)n_constraints; csr_row++) {
for (size_t csr_row = 0; csr_row + 1 < constraint_matrix_offsets.size(); csr_row++) {
const i_t row_id = static_cast<i_t>(csr_row);
for (size_t k = (size_t)constraint_matrix_offsets[csr_row];
k < (size_t)constraint_matrix_offsets[csr_row + 1];
Expand Down