postall

Macro postall 

Source
macro_rules! postall {
    ($model:expr, $($rest:tt)*) => { ... };
}
Expand description

Batch multiple constraint references into a vector

This macro provides a convenient way to group existing constraint references into a vector for organization or tracking purposes.

ยงExamples

use cspsolver::prelude::*;
 
let mut m = Model::default();
let x = m.int(1, 10);
let y = m.int(1, 10);
let z = m.int(1, 20);
let five = m.int(5, 5);
 
// Post multiple constraints directly
postall!(m, x < y, y > five, x + y <= z);