Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes #1443

Merged
merged 7 commits into from
Oct 9, 2019
Merged

Various fixes #1443

merged 7 commits into from
Oct 9, 2019

Conversation

bqpd
Copy link
Contributor

@bqpd bqpd commented Oct 8, 2019

No description provided.

@@ -519,6 +523,8 @@ def sens_from_dual(self, la, nu, result): # pylint: disable=unused-argument
self.relax_sensitivity = la
if self.sgp_parent:
self.sgp_parent.relax_sensitivity = la
if getattr(self.sgp_parent, "sgp_parent", None):
self.sgp_parent.sgp_parent.relax_sensitivity = la
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there two layers of sgp_parent here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh let me guess, because you can have relaxations and SP approximations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup.

"%+6.2g" % c.relax_sensitivity, id(c), c)
for c in self.model.flat()
if c.relax_sensitivity >= tight_senss]
except AttributeError:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree that this is a better error message!

@bqpd
Copy link
Contributor Author

bqpd commented Oct 9, 2019

test models please

@bqpd bqpd merged commit 658e792 into master Oct 9, 2019
@bqpd bqpd deleted the fixes branch October 9, 2019 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants