blob: c7da502fb53b297a1fa8febe0f5156a7b2f54682 (
plain)
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
|
/**
* \brief Remove overlaps function
*
* Authors:
* Tim Dwyer <tgdwyer@gmail.com>
*
* Copyright (C) 2005 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef SEEN_REMOVEOVERLAP_SOLVE_VPSC_H
#define SEEN_REMOVEOVERLAP_SOLVE_VPSC_H
class Variable;
class Constraint;
class Blocks;
/**
* Variable Placement with Separation Constraints problem instance
*/
class VPSC {
public:
void satisfy();
void solve();
void move_and_split();
VPSC(Variable *vs[], const int n, Constraint *cs[], const int m);
~VPSC();
protected:
Blocks *bs;
void refine();
private:
void printBlocks();
bool constraintGraphIsCyclic(Variable *vs[], const int n);
bool blockGraphIsCyclic();
Constraint **cs;
int m;
};
#endif // SEEN_REMOVEOVERLAP_SOLVE_VPSC_H
|