Skip to content

Commit 8cf849b

Browse files
Enhance resolver class: Add constructor and additional member variables for constraint management
1 parent baeaff0 commit 8cf849b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

include/basic_solver.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ namespace ratio
3232

3333
class resolver
3434
{
35+
friend class basic_solver;
36+
3537
public:
3638
resolver(flaw &flw, utils::rational &&intrinsic_cost) noexcept;
3739
resolver(const resolver &) = delete;
@@ -41,8 +43,10 @@ namespace ratio
4143
virtual void apply() = 0;
4244

4345
protected:
44-
flaw &flw; // The flaw this resolver addresses..
45-
utils::rational intrinsic_cost; // The intrinsic cost of applying this resolver..
46+
flaw &flw; // The flaw this resolver addresses..
47+
utils::rational intrinsic_cost; // The intrinsic cost of applying this resolver..
48+
linspire::constraint cnst; // The constraint associated with this resolver..
49+
std::vector<std::reference_wrapper<arc_consistency::constraint>> ac_cnsts; // The arc consistency constraints associated with this resolver..
4650
};
4751

4852
class basic_solver : public solver_core

0 commit comments

Comments
 (0)