@@ -60,7 +60,7 @@ COptMethodCoranaWalk::COptMethodCoranaWalk(const CDataContainer * pParent,
6060
6161COptMethodCoranaWalk::COptMethodCoranaWalk (const COptMethodCoranaWalk & src,
6262 const CDataContainer * pParent)
63- : COptMethod(src, pParent)
63+ : COptMethod(src, pParent, false )
6464 , mTemperature(src.mTemperature )
6565 , mhIterations(C_INVALID_INDEX)
6666 , mIterations(src.mIterations )
@@ -102,7 +102,7 @@ bool COptMethodCoranaWalk::optimise()
102102 C_FLOAT64 xc, p, c, New, minstep;
103103 bool processing;
104104
105- const std::vector< COptItem * > & OptItemList = mProblemContext .master ()->getOptItemList (true );
105+ const std::vector< COptItem * > & OptItemList = mProblemContext .active ()->getOptItemList (true );
106106
107107 // set the minimum step size as being the average of step sizes
108108 // or 100*DBL_EPSILON if average is zero
@@ -190,7 +190,7 @@ bool COptMethodCoranaWalk::optimise()
190190 signalStop ();
191191
192192 // Check all functional constraints
193- if (!mProblemContext .master ()->checkFunctionalConstraints ())
193+ if (!mProblemContext .active ()->checkFunctionalConstraints ())
194194 {
195195 // Undo since not accepted
196196 OptItem.setItemValue (mCurrent [h], COptItem::CheckPolicyFlag::None);
@@ -253,10 +253,10 @@ bool COptMethodCoranaWalk::optimise()
253253
254254 if (processing)
255255 {
256- mCurrent = mProblemContext .master ()->getSolutionVariables (true );
256+ mCurrent = mProblemContext .active ()->getSolutionVariables (true );
257257
258258 for (a = 0 ; a < mVariableSize ; a++)
259- mProblemContext .master ()->getOptItemList (true )[a]->setItemValue (mCurrent [a], COptItem::CheckPolicyFlag::None);
259+ mProblemContext .active ()->getOptItemList (true )[a]->setItemValue (mCurrent [a], COptItem::CheckPolicyFlag::None);
260260
261261 mCurrentValue = getBestValue ();
262262 }
@@ -304,7 +304,7 @@ bool COptMethodCoranaWalk::initialize()
304304 mProcessReport .addItem (" Iterations" ,
305305 mCurrentIteration , &mIterations );
306306
307- mVariableSize = mProblemContext .master ()->getOptItemList (true ).size ();
307+ mVariableSize = mProblemContext .active ()->getOptItemList (true ).size ();
308308
309309 mCurrent .resize (mVariableSize );
310310 mStep .resize (mVariableSize );
0 commit comments