30 #ifndef VPSC_SOLVE_VPSC_H 31 #define VPSC_SOLVE_VPSC_H 79 std::vector<Constraint*>
const &cs;
81 std::vector<Variable*>
const &vs;
88 bool constraintGraphIsCyclic(
const unsigned n,
Variable*
const vs[]);
89 bool blockGraphIsCyclic();
130 #endif // VPSC_SOLVE_VPSC_H A variable is comprised of an ideal position, final position and a weight.
Definition: variable.h:44
Incremental solver for Variable Placement with Separation Constraints problem instance.
Definition: solve_VPSC.h:105
virtual bool satisfy()
Results in an approximate solution subject to the constraints.
Definition: solve_VPSC.cpp:132
libvpsc: Variable Placement with Separation Constraints quadratic program solver library.
Definition: assertions.h:61
void copyResult()
Definition: solve_VPSC.cpp:115
Static solver for Variable Placement with Separation Constraints problem instance.
Definition: solve_VPSC.h:60
std::vector< Variable * > Variables
A vector of pointers to Variable objects.
Definition: constraint.h:38
std::vector< Constraint * > Constraints
A vector of pointers to Constraint objects.
Definition: constraint.h:125
A constraint determines a minimum or exact spacing required between two Variable objects.
Definition: constraint.h:44
Variables const & getVariables()
Returns the Variables in this problem instance.
Definition: solve_VPSC.h:75
bool solve()
Results in an optimum solution subject to the constraints.
Definition: solve_VPSC.cpp:212
bool satisfy()
Results in an approximate solution subject to the constraints.
Definition: solve_VPSC.cpp:243
virtual bool solve()
Results in an optimum solution subject to the constraints.
Definition: solve_VPSC.cpp:205
void addConstraint(Constraint *constraint)
Adds a constraint to the existing VPSC solver.
Definition: solve_VPSC.cpp:87