1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943
|
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Contributing authors:
* Mikael Lagerkvist <lagerkvist@gecode.org>
*
* Copyright:
* Guido Tack, 2009
* Mikael Lagerkvist, 2009
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include <gecode/driver.hh>
#include <gecode/int.hh>
#include <gecode/minimodel.hh>
using namespace Gecode;
/// Instance data for radio therapy problem
class RadiotherapyData {
private:
/// Compute incremental sum
int incr_sum(int row) {
int sum = intensity[row*n];
for (int i=1; i<n; i++)
sum += std::max(intensity[row*n+i]-intensity[row*n+i-1],0);
return sum;
}
public:
const int m; ///< Height of intensity matrix
const int n; ///< Width of intensity matrix
const int* intensity; ///< Intensity matrix
int btMin; ///< Minimal beam time (computed from other parameters)
int btMax; ///< Maximal beam time (computed from other parameters)
int intsSum; ///< Sum of all intensities
/// Construct instance data
RadiotherapyData(int m0, int n0, const int* intensity0)
: m(m0), n(n0), intensity(intensity0) {
btMax = 0;
intsSum = 0;
for (int i=0; i<m*n; i++) {
btMax = std::max(btMax, intensity[i]);
intsSum += intensity[i];
}
btMin = 0;
for (int i=0; i<m; i++)
btMin = std::max(btMin, incr_sum(i));
}
};
namespace {
extern RadiotherapyData rds[];
extern const unsigned int rds_n;
}
/**
* \brief %Example: %Radiotherapy
*
* Implementation of the model for cancer radiation treatment planning
* from the paper
*
* Davaatseren Baatar, Natashia Boland, Sebastian Brand, Peter J. Stuckey.
* Minimum Cardinality Matrix Decomposition into Consecutive-Ones Matrices:
* CP and IP Approaches. CPAIOR 2007
*
* \ingroup Example
*
*/
class Radiotherapy : public IntMinimizeScript {
private:
/// Instance data
const RadiotherapyData rd;
/// Total beam-on time
IntVar beamtime;
/// Number of shape matrices
IntVar K;
/// n[b] is the number of shape matrices with associated beam-on time b
IntVarArray N;
/// Q[i,j,b] is the number of shape matrices with associated beam-on time b that expose cell (i,j)
IntVarArray q;
/// Cost to be minimized
IntVar _cost;
public:
/// The actual problem
Radiotherapy(const SizeOptions& opt)
: IntMinimizeScript(opt), rd(rds[opt.size()]) {
// Initialize variables
beamtime = IntVar(*this, rd.btMin, rd.intsSum);
K = IntVar(*this, 0, rd.m*rd.n);
N = IntVarArray(*this, rd.btMax, 0, rd.m*rd.n);
q = IntVarArray(*this, rd.m*rd.n*rd.btMax, 0, rd.m*rd.n);
IntArgs coeffs(rd.btMax);
for (int i=0; i<rd.btMax; i++)
coeffs[i] = i+1;
linear(*this, coeffs, N, IRT_EQ, beamtime);
linear(*this, N, IRT_EQ, K);
for (int i=0; i<rd.m; i++) {
for (int j=0; j<rd.n; j++) {
IntVarArgs qs(rd.btMax);
for (int b=0; b<rd.btMax; b++)
qs[b] = q[i*rd.n*rd.btMax+j*rd.btMax+b];
linear(*this, coeffs, qs, IRT_EQ, rd.intensity[i*rd.n+j], IPL_DOM);
}
}
for (int i=0; i<rd.m; i++) {
for (int b=0; b<rd.btMax; b++) {
IntVarArgs qs(rd.n);
for (int j=0; j<rd.n; j++)
qs[j] = q[i*rd.n*rd.btMax+j*rd.btMax+b];
incr_sum(N[b], qs, rd.m*rd.n);
}
}
_cost = IntVar(*this, 0, (rd.m*rd.n+1)*(rd.intsSum+1));
rel(*this, _cost == beamtime*(rd.m*rd.n+1)+K);
// First branch over beamtime and N
IntVarArgs ba({beamtime});
branch(*this, ba, INT_VAR_NONE(), INT_VAL_MIN());
branch(*this, N, INT_VAR_NONE(), INT_VAL_SPLIT_MIN());
// Then perform a nested search over q
NestedSearch::post(*this);
}
/// Post incremental sum constraint
void incr_sum(IntVar& x, IntVarArgs& y, int mn) {
IntVarArgs s(*this, y.size()-1, 0, mn);
IntVarArgs t(y.size());
t[0] = y[0];
for (int i=1; i<y.size(); i++) {
rel(*this, s[i-1] >= y[i]-y[i-1]);
t[i] = s[i-1];
}
linear(*this, t, IRT_LQ, x);
}
/// Constructor for cloning \a s
Radiotherapy(Radiotherapy& s)
: IntMinimizeScript(s), rd(s.rd) {
beamtime.update(*this, s.beamtime);
N.update(*this, s.N);
K.update(*this, s.K);
_cost.update(*this, s._cost);
q.update(*this, s.q);
}
/// Perform copying during cloning
virtual Space*
copy(void) {
return new Radiotherapy(*this);
}
/// Cost to be minimized
virtual IntVar
cost(void) const { return _cost; }
/// Print solution
virtual void
print(std::ostream& os) const {
os << std::endl
<< "B / K = " << beamtime << " / " << K << ",\nN = " << N << std::endl;
}
/// Nested search on the q variables
class NestedSearch : public Brancher {
private:
/// Flag that the brancher is done after one commit
bool done;
/// Mapping of index to weight
struct Idx {
int idx; ///< Index
int weight; ///< Weight
/// Sort order (higher weights go first)
bool operator<(const Idx& rhs) const { return weight > rhs.weight; }
};
/// Weighted ordering of rows
SharedArray<Idx> index;
/// Choice that only signals failure or success
class Choice : public Gecode::Choice {
public:
/// Whether brancher should fail
bool fail;
/// Initialize choice for brancher \a b
Choice(const Brancher& b, bool fail0)
: Gecode::Choice(b,1), fail(fail0) {}
/// Archive into \a e
virtual void archive(Archive& e) const {
Gecode::Choice::archive(e);
e.put(fail);
}
};
/// Construct brancher
NestedSearch(Space& home) : Brancher(home), done(false) {
Radiotherapy& rt = static_cast<Radiotherapy&>(home);
// Set up ordering of rows. As a heuristic, pre-order the rows
// with the potentially cheapest ones first.
index.init(rt.rd.m+1);
for (int i = rt.rd.m; i--; ) {
index[i].idx = i;
index[i].weight = 0;
for (int j = rt.rd.n; j--; )
index[i].weight += rt.rd.intensity[i*rt.rd.n + j] == 0;
}
Support::quicksort(&(index[0]), rt.rd.m);
for (int i = rt.rd.m; i--; )
index[i].weight = 0;
index[rt.rd.m].idx = 10;
// A shared object must be disposed properly
home.notice(*this, AP_DISPOSE);
}
/// Copy constructor
NestedSearch(Space& home, NestedSearch& b)
: Brancher(home, b), done(b.done), index(b.index) {
}
public:
virtual bool status(const Space&) const {
return !done;
}
IntVarArgs getRow(Radiotherapy* row, int i) {
IntVarArgs ri(row->rd.n*row->rd.btMax);
for (int j=0; j<row->rd.n; j++) {
for (int b=0; b<row->rd.btMax; b++) {
ri[j*row->rd.btMax+b] =
row->q[i*row->rd.n*row->rd.btMax+j*row->rd.btMax+b];
}
}
return ri;
}
/// Return choice
virtual Gecode::Choice* choice(Space& home) {
done = true;
Radiotherapy& rt = static_cast<Radiotherapy&>(home);
std::cout << "*";
// Perform nested search for each row
bool fail = false;
for (int i=0; i<rt.rd.m; i++) {
// Create fresh clone for row i
Radiotherapy* row = static_cast<Radiotherapy*>(rt.clone());
// Branch over row i
branch(*row, getRow(row, index[i].idx),
INT_VAR_NONE(), INT_VAL_SPLIT_MIN());
Search::Options o; o.clone = false;
if (Radiotherapy* newSol = dfs(row, o) ) {
// Found a solution for row i, so try to find one for i+1
delete newSol;
std::cerr << index[i].idx;
} else {
// Found no solution for row i, so back to search the N variables
fail = true;
index[i].weight += 1;
if (i && index[i] < index[i-1])
std::swap(index[i], index[i-1]);
break;
}
}
return new Choice(*this, fail);
}
/// Return choice
virtual Choice* choice(const Space&, Archive& e) {
bool fail; e >> fail;
return new Choice(*this, fail);
}
/// Perform commit for choice \a _c and alternative \a a
virtual ExecStatus commit(Space&, const Gecode::Choice& _c, unsigned int) {
return static_cast<const Choice&>(_c).fail ? ES_FAILED : ES_OK;
}
/// Print explanation
virtual void print(const Space&, const Gecode::Choice& _c,
unsigned int,
std::ostream& o) const {
const Choice& c = static_cast<const Choice&>(_c);
o << (c.fail ? "fail" : "ok");
}
/// Copy brancher
virtual Actor* copy(Space& home) {
return new (home) NestedSearch(home, *this);
}
/// Post brancher
static void post(Home home) {
(void) new (home) NestedSearch(home);
}
/// Dispose member function
size_t dispose(Space& home) {
home.ignore(*this,AP_DISPOSE);
// Periodic scaling of weights
if (!--index[index.size()-1].idx) {
index[index.size()-1].idx = 10;
for (int i = index.size()-1; i--; )
index[i].weight *= 0.9;
}
(void) Brancher::dispose(home);
(void) index.~SharedArray<Idx>();
return sizeof(*this);
}
};
};
/** \brief Main-function
* \relates Radiotherapy
*/
int
main(int argc, char* argv[]) {
SizeOptions opt("Radiotherapy");
opt.solutions(0);
opt.size(0);
opt.parse(argc,argv);
if (opt.size() >= rds_n) {
std::cerr << "Error: size must be between 0 and "
<< rds_n-1 << std::endl;
return 1;
}
IntMinimizeScript::run<Radiotherapy,BAB,SizeOptions>(opt);
return 0;
}
namespace {
/** \brief Radiotherapy specifications.
*
* \relates Radiotherapy
*/
//@{
// Small instance
static const int intensity0[] = {
7, 2, 14, 8, 9,
13, 4, 1, 2, 9,
5, 12, 2, 11, 9,
10, 2, 4, 9, 7,
10, 2, 8, 11, 1
};
RadiotherapyData rd0(5,5,intensity0);
// Larger instance
static const int intensity1[] = {
6, 10, 6, 8, 10, 0, 4, 10, 0, 6, 2, 8, 0, 2, 0 ,
1, 8, 3, 1, 0, 8, 0, 3, 6, 10, 9, 8, 9, 6, 9 ,
8, 5, 6, 7, 7, 0, 6, 8, 2, 7, 5, 2, 0, 9, 2 ,
9, 2, 10, 5, 7, 1, 3, 7, 5, 1, 8, 2, 3, 10, 4 ,
8, 7, 4, 1, 6, 3, 0, 1, 2, 6, 4, 4, 0, 5, 0 ,
9, 0, 7, 4, 9, 7, 4, 1, 4, 1, 1, 9, 2, 9, 9 ,
3, 6, 10, 0, 6, 6, 10, 10, 7, 0, 10, 2, 10, 2, 4 ,
8, 9, 5, 2, 6, 1, 9, 0, 4, 2, 4, 1, 5, 1, 4 ,
6, 10, 0, 0, 7, 0, 0, 5, 8, 5, 10, 3, 2, 2, 10 ,
4, 3, 0, 6, 10, 7, 2, 7, 2, 9, 2, 8, 9, 7, 9 ,
10, 2, 0, 5, 5, 1, 3, 7, 1, 6, 5, 4, 2, 8, 1 ,
3, 6, 4, 3, 7, 10, 6, 7, 7, 6, 5, 9, 10, 8, 3 ,
9, 9, 5, 2, 4, 2, 3, 3, 1, 2, 9, 2, 5, 6, 3 ,
7, 5, 2, 6, 4, 8, 1, 0, 2, 4, 7, 9, 3, 3, 0 ,
5, 3, 8, 7, 10, 6, 7, 7, 6, 10, 4, 4, 5, 8, 0
};
RadiotherapyData rd1(15,15,intensity1);
/*
* The following 25 clinical instances were provided by
* - James F. Dempsey, ViewRay, Inc.
* - H. Edwin Romeijn, Department of Industrial and Operations
* Engineering, The University of Michigan
* - J. Cole Smith, Department of Industrial and Systems
* Engineering, University of Florida
* - Z. Caner Taskin, Department of Industrial and Systems
* Engineering, University of Florida
* - Chunhua Men, Department of Industrial and Systems Engineering,
* University of Florida
* They are from the artiples
* - "Mixed-Integer Programming Techniques for Decomposing IMRT
* Fluence Maps Using Rectangular Apertures", Z. Caner Taskin,
* J. Cole Smith, H. Edwin Romeijn
* - "Optimal Multileaf Collimator Leaf Sequencing in IMRT Treatment
* Planning", Z. Caner Tasin, J. Cole Smith, H. Edwin Romeijn, James
* F. Dempsey
*/
static const int case1_beam1_matrix[] = {
2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
2, 1, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3, 0, 2,
3, 1, 0, 0, 0, 0, 0, 0, 18, 0, 0, 4, 6, 0,
2, 0, 0, 3, 11, 8, 15, 1, 11, 0, 0, 0, 10, 0,
0, 0, 0, 9, 11, 14, 6, 2, 7, 0, 0, 0, 7, 0,
0, 8, 2, 7, 10, 11, 7, 2, 0, 7, 0, 0, 0, 1,
0, 0, 4, 1, 6, 7, 0, 0, 0, 0, 0, 0, 0, 1,
0, 3, 1, 0, 4, 6, 0, 0, 0, 1, 0, 0, 0, 1,
0, 1, 5, 6, 8, 8, 5, 0, 2, 0, 0, 0, 7, 0,
0, 5, 2, 8, 10, 11, 5, 3, 7, 0, 2, 4, 11, 0,
0, 0, 0, 1, 12, 13, 9, 7, 11, 1, 2, 3, 6, 0,
0, 0, 0, 0, 0, 0, 0, 4, 20, 0, 0, 8, 5, 0,
3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 6, 7, 0, 2,
2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 1
};
RadiotherapyData case1_beam1(15, 14, case1_beam1_matrix);
static const int case1_beam2_matrix[] = {
2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 4, 3, 4, 0, 2,
2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 2, 0, 1,
3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 1, 0, 0, 3,
0, 0, 0, 5, 5, 3, 0, 0, 3, 2, 8, 6, 0, 0, 3,
0, 0, 7, 11, 10, 11, 5, 8, 4, 11, 13, 20, 0, 0, 3,
0, 10, 10, 9, 7, 7, 7, 2, 9, 0, 0, 0, 9, 0, 2,
0, 4, 7, 7, 5, 6, 2, 0, 4, 0, 0, 0, 3, 0, 2,
0, 10, 2, 7, 1, 2, 0, 0, 0, 0, 0, 0, 0, 3, 1,
0, 0, 5, 6, 3, 1, 0, 6, 8, 0, 0, 0, 0, 1, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2
};
RadiotherapyData case1_beam2(11, 15, case1_beam2_matrix);
static const int case1_beam3_matrix[] = {
2, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1,
1, 2, 0,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0, 0, 2,
0, 0, 0, 0, 4, 2, 4, 0, 7, 0, 0, 0, 0, 0, 2,
2, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
2, 0, 0, 1, 7, 4, 0, 0, 0, 10, 10, 4, 0, 1, 1,
2, 2, 0, 0, 0, 0, 0, 4, 0, 14, 14, 9, 0, 0, 1,
2, 2, 0, 0, 0, 0, 0, 0, 0, 12, 16, 5, 1, 0, 2,
2, 2, 0, 0, 0, 0, 0, 0, 1, 10, 12, 6, 3, 0, 2,
1, 3, 0, 0, 0, 0, 0, 0, 2, 12, 15, 3, 0, 1, 2
};
RadiotherapyData case1_beam4(15, 15, case1_beam4_matrix);
static const int case1_beam5_matrix[] = {
3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2,
0, 0, 6, 4, 3, 1, 0, 0, 7, 0, 0, 0, 0, 3, 2,
0, 13, 6, 1, 1, 1, 5, 0, 2, 0, 0, 0, 0, 1, 2,
0, 2, 12, 5, 4, 2, 2, 0, 1, 20, 11, 11, 5, 0, 2,
0, 9, 12, 7, 3, 2, 7, 3, 5, 14, 12, 13, 11, 0, 2,
0, 5, 11, 13, 6, 6, 5, 5, 5, 15, 11, 13, 12, 0, 2,
0, 0, 0, 1, 4, 5, 0, 0, 0, 7, 9, 9, 8, 0, 2,
4, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 4, 5, 0, 2,
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 9, 0, 3
};
RadiotherapyData case1_beam5(11, 15, case1_beam5_matrix);
static const int case2_beam1_matrix[] = {
1, 1, 1, 4, 1, 0, 1, 5, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 2,
1, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0
};
RadiotherapyData case3_beam1(22, 17, case3_beam1_matrix);
static const int case3_beam2_matrix[] = {
0, 0, 1, 1, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 8, 0, 1, 4, 5, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0,
2, 0, 0, 0, 3, 2, 2, 1, 1, 0, 0, 1, 4, 7, 11, 9, 0, 0, 0,
2, 0, 0, 0, 3, 2, 2, 0, 2, 4, 1, 4, 7, 11, 10, 20, 1, 0, 0,
3, 0, 2, 0, 2, 2, 2, 1, 7, 8, 5, 9, 13, 16, 13, 14, 12, 0, 0,
2, 0, 1, 0, 3, 2, 4, 5, 15, 16, 12, 11, 15, 17, 15, 14, 9, 0, 3,
2, 0, 11, 0, 6, 3, 0, 5, 17, 16, 10, 10, 13, 17, 13, 14, 7, 1, 3,
2, 0, 5, 0, 8, 1, 0, 2, 16, 16, 9, 8, 10, 14, 12, 13, 12, 0, 3,
0, 0, 0, 2, 8, 1, 0, 7, 15, 17, 7, 8, 10, 12, 9, 12, 5, 1, 0,
0, 0, 0, 0, 5, 0, 2, 7, 15, 13, 5, 4, 9, 7, 4, 0, 0, 2, 0,
0, 0, 0, 0, 4, 0, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
RadiotherapyData case3_beam2(15, 19, case3_beam2_matrix);
static const int case3_beam3_matrix[] = {
0, 0, 0, 0, 0, 0, 0, 0, 15,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ix);
static const int case3_beam4_matrix[] = {
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 3, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 12, 0, 3, 0,
2, 0, 0, 0, 0, 0, 2, 0, 10, 9, 20, 0, 0, 15, 0, 3, 0,
0, 0, 0, 14, 0, 0, 0, 3, 7, 11, 16, 16, 6, 16, 2, 2, 0,
0, 0, 10, 9, 5, 0, 0, 16, 7, 10, 17, 16, 13, 11, 12, 0, 0,
0, 9, 10, 10, 5, 2, 11, 9, 9, 12, 16, 18, 12, 13, 3, 0, 3,
0, 5, 11, 10, 6, 4, 10, 15, 10, 13, 17, 18, 16, 5, 11, 0, 2,
0, 1, 13, 11, 7, 2, 19, 12, 14, 12, 16, 18, 16, 12, 7, 11, 0,
0, 0, 14, 6, 7, 0, 0, 11, 13, 13, 17, 16, 16, 11, 7, 11, 0,
0, 0, 5, 0, 0, 0, 0, 7, 4, 8, 11, 12, 12, 10, 7, 9, 0,
2, 0, 0, 0, 0, 0, 0, 1, 2, 2, 5, 5, 7, 7, 8, 1, 1,
3, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 6, 5, 11, 0, 2,
0, 6, 3, 2, 2, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 4, 4, 7, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 4, 6, 2, 9, 12, 6, 5, 5, 5, 0, 0, 0, 1,
0, 0, 0, 4, 2, 4, 0, 7, 10, 8, 10, 10, 5, 0, 0, 1, 0,
1, 0, 0, 3, 0, 0, 0, 0, 6, 5, 11, 9, 11, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 13, 13, 0, 0, 0, 0
};
RadiotherapyData case3_beam4(19, 17, case3_beam4_matrix);
static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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 12, 5, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 0, 0, 0
};
RadiotherapyData case4_beam1(19, 22, case4_beam1_matrix);
static const int case4_beam2_matrix[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 3, 2, 9, 17, 10, 11, 6, 0, 0, 5, 0,
0, 0, 0, 0, 0, 0, 7, 6, 0, 0, 0, 0, 1, 2, 7, 14, 16, 14, 16, 7, 5, 5, 0, 4,
0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 5, 10, 16, 20, 12, 17, 8, 13, 13, 0, 4,
0, 3, 7, 2, 0, 5, 5, 0, 6, 2, 0, 0, 3, 12, 16, 17, 17, 10, 19, 9, 11, 13, 0, 4,
3, 0, 19, 9, 11, 10, 3, 2, 0, 7, 7, 13, 20, 14, 17, 15, 18, 7, 18, 11, 11, 15, 0, 4,
0, 3, 4, 9, 10, 9, 0, 2, 0, 2, 0, 13, 13, 13, 14, 14, 17, 4, 17, 11, 11, 16, 0, 4,
0, 1, 0, 0, 0, 6, 0, 0, 1, 1, 0, 5, 13, 9, 11, 9, 12, 5, 14, 11, 10, 18, 0, 4,
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 10, 9, 8, 7, 12, 2, 13, 10, 11, 17, 0, 4,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 8, 2, 0, 4, 13, 8, 12, 19, 0, 4,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 3, 0, 0, 0, 0, 5, 8, 15, 0, 2, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0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 3, 1,
0, 3, 3, 7, 9, 7, 4, 3, 0, 0, 0, 0, 0, 6, 4, 0,
2, 0, 1, 7, 0, 0, 0, 4, 0, 0, 0, 5, 0, 8, 3, 1,
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 6, 0, 2, 1, 1,
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2
};
RadiotherapyData case5_beam1(15, 16, case5_beam1_matrix);
static const int case5_beam2_matrix[] = {
2, 2, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 1, 2,
2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
2, 3, 4, 0, 0, 0, 0, 5, 5, 5, 0, 0, 5, 0, 1, 0, 1,
2, 2, 4, 0, 0, 0, 0, 0, 2, 2, 3, 0, 3, 0, 1, 5, 0,
2, 2, 2, 0, 0, 0, 0, 0, 0, 8, 4, 0, 2, 2, 3, 8, 0,
3, 1, 1, 0, 0, 0, 3, 1, 2, 13, 14, 13, 4, 10, 2, 16, 0,
3, 2, 0, 0, 0, 0, 0, 0, 9, 19, 16, 6, 8, 18, 2, 9, 0,
3, 0, 0, 8, 8, 1, 6, 7, 6, 20, 8, 0, 0, 0, 0, 1, 2,
4, 2, 2, 17, 2, 0, 0, 0, 3, 13, 0, 1, 0, 1, 4, 0, 2,
2, 6, 0, 8, 0, 0, 3, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 5, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 2
};
RadiotherapyData case5_beam2(13, 17, case5_beam2_matrix);
static const int case5_beam3_matrix[] = {
1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
1, 3, 0, 0, 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, 0, 0, 0, 0, 1, 0, 1,
1, 2, 0, 0, 2, 0, 2, 0, 0, 3, 0, 1, 3, 0, 0, 1,
1, 2, 0, 0, 0, 0, 0, 0, 11, 1, 6, 6, 4, 0, 3, 0,
1, 2, 0, 0, 0, 0, 0, 2, 9, 6, 3, 8, 6, 0, 6, 1,
1, 1, 1, 0, 0, 0, 0, 0, 6, 2, 0, 4, 1, 1, 3, 1,
1, 1, 1, 0, 0, 0, 0, 0, 3, 0, 0, 6, 0, 1, 1, 1,
1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 10, 1, 1, 0, 1
};
RadiotherapyData case5_beam4(14, 16, case5_beam4_matrix);
static const int case5_beam5_matrix[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
0, 0, 7, 8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
2, 0, 9, 12, 3, 0, 1, 0, 0, 10, 0, 0, 0, 0, 0, 0, 1,
3, 0, 10, 11, 11, 1, 9, 3, 5, 0, 6, 3, 14, 12, 0, 0, 3,
2, 0, 5, 7, 12, 5, 9, 10, 4, 0, 0, 5, 20, 2, 5, 0, 0,
1, 4, 0, 2, 4, 7, 3, 5, 9, 0, 0, 15, 15, 17, 4, 1, 0,
2, 4, 0, 0, 0, 0, 0, 0, 6, 0, 5, 12, 9, 14, 6, 8, 0,
2, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 3, 0,
2, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0,
2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0,
2, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
};
RadiotherapyData case5_beam5(12, 17, case5_beam5_matrix);
//@}
/// Radiotherapy instances
RadiotherapyData rds[] = {rd0, rd1,
case1_beam1,
case1_beam2,
case1_beam3,
case1_beam4,
case1_beam5,
case2_beam1,
case2_beam2,
case2_beam3,
case2_beam4,
case2_beam5,
case3_beam1,
case3_beam2,
case3_beam3,
case3_beam4,
case3_beam5,
case4_beam1,
case4_beam2,
case4_beam3,
case4_beam4,
case4_beam5,
case5_beam1,
case5_beam2,
case5_beam3,
case5_beam4,
case5_beam5
};
/// Number of Radiotherapy instances
const unsigned int rds_n = sizeof(rds) / sizeof(RadiotherapyData);
}
// STATISTICS: example-any
|