Skip to content

Commit 701c55d

Browse files
committed
add integer variable tests
1 parent ede7adc commit 701c55d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/variable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl VariableDefinition {
143143
/// # use good_lp::{ProblemVariables, variable, default_solver, SolverModel, Solution};
144144
/// let mut problem = ProblemVariables::new();
145145
/// let x = problem.add(variable().integer().min(0).max(2.5));
146-
/// # if cfg!(not(any(feature = "microlp", feature="clarabel"))) {
146+
/// # if cfg!(not(any(feature="clarabel"))) {
147147
/// let solution = problem.maximise(x).using(default_solver).solve().unwrap();
148148
/// // x is bound to [0; 2.5], but the solution is x=2 because x needs to be an integer
149149
/// assert_eq!(solution.value(x), 2.);
@@ -164,7 +164,7 @@ impl VariableDefinition {
164164
/// let mut problem = ProblemVariables::new();
165165
/// let x = problem.add(variable().binary());
166166
/// let y = problem.add(variable().binary());
167-
/// if cfg!(not(any(feature = "microlp", feature="clarabel"))) {
167+
/// if cfg!(not(any(feature="clarabel"))) {
168168
/// let solution = problem.maximise(x + y).using(default_solver).solve().unwrap();
169169
/// assert_eq!(solution.value(x), 1.);
170170
/// assert_eq!(solution.value(y), 1.);

0 commit comments

Comments
 (0)