Print solution
| 258 | } |
| 259 | /// Print solution |
| 260 | virtual void |
| 261 | print(std::ostream& os) const { |
| 262 | int n = spec.size(); |
| 263 | Matrix<IntVarArray> m(e, n); |
| 264 | |
| 265 | for (int i=0; i<n; i++) { |
| 266 | os << "\t"; |
| 267 | for (int j=0; j<n; j++) { |
| 268 | if (m(i,j).assigned()) |
| 269 | os.width(2); |
| 270 | os << m(i,j) << " "; |
| 271 | } |
| 272 | os << std::endl; |
| 273 | } |
| 274 | } |
| 275 | }; |
| 276 | |
| 277 | /** \brief Main-function |