Skip to content

Commit

Permalink
Revert "use delta instead of fastDelta when determining the need for …
Browse files Browse the repository at this point in the history
…shifts"

This reverts commit a7b4fab.
  • Loading branch information
leoneifler committed Jun 11, 2024
1 parent a7b4fab commit 3f52108
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/soplex/spxboundflippingrt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ SPxId SPxBoundFlippingRT<R>::selectEnter(
break;
}

degeneps = this->delta / moststable; /* as in SPxFastRT */
degeneps = this->fastDelta / moststable; /* as in SPxFastRT */
// get stability requirements
instable = this->thesolver->instableLeave;
assert(!instable || this->thesolver->instableLeaveNum >= 0);
Expand Down Expand Up @@ -1149,7 +1149,7 @@ int SPxBoundFlippingRT<R>::selectLeave(
break;
}

degeneps = this->delta / moststable; /* as in SPxFastRT */
degeneps = this->fastDelta / moststable; /* as in SPxFastRT */
// get stability requirements
instable = this->thesolver->instableEnter;
assert(!instable || this->thesolver->instableEnterId.isValid());
Expand Down
8 changes: 4 additions & 4 deletions src/soplex/spxfastrt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ bool SPxFastRT<R>::maxReLeave(R& sel, int leave, R maxabs, bool polish)
{
R x = vec.delta()[leave];

if(sel < -this->delta / maxabs)
if(sel < -fastDelta / maxabs)
{
sel = 0.0;

Expand Down Expand Up @@ -931,7 +931,7 @@ bool SPxFastRT<R>::minReLeave(R& sel, int leave, R maxabs, bool polish)
{
R x = vec.delta()[leave];

if(sel > this->delta / maxabs)
if(sel > fastDelta / maxabs)
{
sel = 0.0;

Expand Down Expand Up @@ -1202,7 +1202,7 @@ bool SPxFastRT<R>::maxReEnter(R& sel,

if((*up)[nr] != (*low)[nr])
{
if(sel < -this->delta / maxabs)
if(sel < -fastDelta / maxabs)
{
sel = 0.0;

Expand Down Expand Up @@ -1309,7 +1309,7 @@ bool SPxFastRT<R>::minReEnter(

if((*up)[nr] != (*low)[nr])
{
if(sel > this->delta / maxabs)
if(sel > fastDelta / maxabs)
{
sel = 0.0;

Expand Down

0 comments on commit 3f52108

Please sign in to comment.