Fix solve_with_parameters

This commit is contained in:
Guillaume Pinot
2021-09-13 11:07:55 +02:00
committed by Guillaume P
parent 44d16c2465
commit eb3c60678c
4 changed files with 15 additions and 5 deletions
+1 -3
View File
@@ -303,14 +303,12 @@ impl CpModelBuilder {
///
/// ```
/// # use cp_sat::builder::CpModelBuilder;
/// # use cp_sat::proto::{CpSolverStatus, SatParameters};
/// # use cp_sat::proto::CpSolverStatus;
/// let mut model = CpModelBuilder::default();
/// let x = model.new_int_var([(0, 100)]);
/// let y = model.new_bool_var();
/// model.add_hint(x, 42);
/// model.add_hint(y, 1);
/// model.add_ge([(1, x), (3, y.into())], 3);
/// model.maximize(y);
/// let response = model.solve();
/// assert_eq!(response.status(), CpSolverStatus::Optimal);
/// ```