@@ -146,6 +146,23 @@ HighsDomain::ConflictPoolPropagation::ConflictPoolPropagation(
146146 conflictpool_->addPropagationDomain (this );
147147}
148148
149+ HighsDomain::ConflictPoolPropagation&
150+ HighsDomain::ConflictPoolPropagation::operator =(
151+ const ConflictPoolPropagation& other) {
152+ if (this == &other) return *this ;
153+ if (conflictpool_) conflictpool_->removePropagationDomain (this );
154+ conflictpoolindex = other.conflictpoolindex ;
155+ domain = other.domain ;
156+ conflictpool_ = other.conflictpool_ ;
157+ colLowerWatched_ = other.colLowerWatched_ ;
158+ colUpperWatched_ = other.colUpperWatched_ ;
159+ conflictFlag_ = other.conflictFlag_ ;
160+ propagateConflictInds_ = other.propagateConflictInds_ ;
161+ watchedLiterals_ = other.watchedLiterals_ ;
162+ if (conflictpool_) conflictpool_->addPropagationDomain (this );
163+ return *this ;
164+ }
165+
149166HighsDomain::ConflictPoolPropagation::~ConflictPoolPropagation () {
150167 conflictpool_->removePropagationDomain (this );
151168}
@@ -375,6 +392,22 @@ HighsDomain::CutpoolPropagation::CutpoolPropagation(
375392 cutpool->addPropagationDomain (this );
376393}
377394
395+ HighsDomain::CutpoolPropagation& HighsDomain::CutpoolPropagation::operator =(
396+ const CutpoolPropagation& other) {
397+ if (this == &other) return *this ;
398+ if (cutpool) cutpool->removePropagationDomain (this );
399+ cutpoolindex = other.cutpoolindex ;
400+ domain = other.domain ;
401+ cutpool = other.cutpool ;
402+ activitycuts_ = other.activitycuts_ ;
403+ activitycutsinf_ = other.activitycutsinf_ ;
404+ propagatecutflags_ = other.propagatecutflags_ ;
405+ propagatecutinds_ = other.propagatecutinds_ ;
406+ capacityThreshold_ = other.capacityThreshold_ ;
407+ if (cutpool) cutpool->addPropagationDomain (this );
408+ return *this ;
409+ }
410+
378411HighsDomain::CutpoolPropagation::~CutpoolPropagation () {
379412 cutpool->removePropagationDomain (this );
380413}
0 commit comments