Skip to content

Commit 6381d8d

Browse files
committed
fix wbo parsing
1 parent 6391391 commit 6381d8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ortools/sat/opb_reader.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ class OpbReader {
138138
return;
139139
}
140140

141+
// We ignore the number of soft constraints.
142+
if (words[0] == "soft:") return;
143+
141144
if (words[0] == "min:") {
142145
for (int i = 1; i < words.size(); ++i) {
143146
const std::string& word = words[i];

0 commit comments

Comments
 (0)