Print solution
| 144 | |
| 145 | /// Print solution |
| 146 | virtual void |
| 147 | print(std::ostream& os) const { |
| 148 | os << "\tBIBD(" |
| 149 | << opt.v << "," << opt.k << "," |
| 150 | << opt.lambda << ")" << std::endl; |
| 151 | Matrix<BoolVarArray> p(_p,opt.b,opt.v); |
| 152 | for (int i = 0; i<opt.v; i++) { |
| 153 | os << "\t\t"; |
| 154 | for (int j = 0; j<opt.b; j++) |
| 155 | os << p(j,i) << " "; |
| 156 | os << std::endl; |
| 157 | } |
| 158 | os << std::endl; |
| 159 | } |
| 160 | |
| 161 | /// Constructor for cloning \a s |
| 162 | BIBD(BIBD& s) |