Skip to content

Commit

Permalink
Add a test for KardinalAI#9
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Mar 4, 2021
1 parent ae423fb commit 81b1197
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,17 @@ mod test {
assert!(!m.to_raw().is_proven_optimal());
}

#[test]
fn unbounded() {
// Formulate an unbounded problem and try to solve it
let mut m = Model::default();
let z = m.add_col();
m.set_obj_coeff(z, 1.);
m.set_col_lower(z, -1e100);
m.set_obj_sense(Sense::Minimize);
m.solve();
}

#[test]
fn with_sos() {
let mut m = Model::default();
Expand Down

0 comments on commit 81b1197

Please sign in to comment.