Print solution
| 199 | |
| 200 | /// Print solution |
| 201 | virtual void |
| 202 | print(std::ostream& os) const { |
| 203 | os << "Tournament plan" << std::endl; |
| 204 | Matrix<SetVarArray> schedule(groups,g,w); |
| 205 | for (int j=0; j<w; j++) { |
| 206 | os << "Week " << j << ": " << std::endl << " "; |
| 207 | os << schedule.row(j) << std::endl; |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | /// Constructor for copying \a s |
| 212 | Golf(Golf& s) : Script(s), g(s.g), s(s.s), w(s.w) { |