Skip to content

Commit 01dd023

Browse files
author
Christian Schulte
committed
Removed instance generation code
git-svn-id: file:///Volumes/GecodeGitMigration/gecode-svn-mirror/gecode/trunk@15221 e85b7adc-8362-4630-8c63-7469d557c915
1 parent 30b2a28 commit 01dd023

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

examples/photo.cpp

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -171,62 +171,6 @@ class Photo : public IntMinimizeScript {
171171
*/
172172
int
173173
main(int argc, char* argv[]) {
174-
/*
175-
Rnd r(0);
176-
for (int n=10; n<=100; n += 10) {
177-
for (int k=0; k<20; k++) {
178-
int p=r(n*n / 4)+1;
179-
int* m = new int[n*n];
180-
for (int i=n*n; i--; )
181-
m[i]=0;
182-
std::cout << "const int p_" << n << "_" << k << "[] = {" << std::endl
183-
<< " /// Number of people on picture" << std::endl
184-
<< " " << n << "," << std::endl
185-
<< " /// Number of preferences" << std::endl
186-
<< " " << p << "," << std::endl
187-
<< " /// Array of preferences" << std::endl
188-
<< " ";
189-
int l=0;
190-
for (int j=0; j<p; j++) {
191-
l++;
192-
int a, b;
193-
do {
194-
a = r(n); b = r(n);
195-
} while (m[a*n+b] != 0);
196-
m[a*n+b]=1;
197-
if ((a < 10) && (n > 10)) std::cout << " "; std::cout << a << ",";
198-
if ((b < 10) && (n > 10)) std::cout << " ";
199-
if (j != p-1) {
200-
std::cout << b << ", ";
201-
if (l == 8) {
202-
l=0;
203-
std::cout << std::endl << " ";
204-
}
205-
} else {
206-
std::cout << b << std::endl;
207-
}
208-
}
209-
delete [] m;
210-
std::cout << "};" << std::endl;
211-
}
212-
std::cout << std::endl;
213-
}
214-
for (int n=10; n<=100; n += 10) {
215-
int l=0;
216-
for (int k=0; k<20; k++) {
217-
++l;
218-
std::cout << "&p_" << n << "_" << k << "[0], ";
219-
if (n < 100)
220-
std::cout << " ";
221-
if (k < 10)
222-
std::cout << " ";
223-
if (l == 5) {
224-
l=0;
225-
std::cout << std::endl;
226-
}
227-
}
228-
}
229-
*/
230174
SizeOptions opt("Photo");
231175
opt.solutions(0);
232176
opt.size(1);

0 commit comments

Comments
 (0)