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

GAMS writer fails for power nested in a log #244

Closed
qtothec opened this issue Oct 28, 2017 · 4 comments
Closed

GAMS writer fails for power nested in a log #244

qtothec opened this issue Oct 28, 2017 · 4 comments

Comments

@qtothec
Copy link
Contributor

qtothec commented Oct 28, 2017

The functionality to selectively replace ** with power() fails in an edge case when ** is nested within a log function, e.g. log(x ** 2). In replace_power(), the assert that arg is bound by ( and ) fails because the arg is bound by log( and ). This is possibly also true with other similar functions, e.g. exp().

@gseastream

whart222 added a commit that referenced this issue Dec 5, 2017
The GAMS writer changes on this branch
eliminate the need for PR #263.  This test is adapted
from that PR, to confirm that the GAMS models
account for this fix.
@whart222
Copy link
Member

whart222 commented Dec 5, 2017

The changes included in PR #272 address this issue on the expr_dev branch.

@whart222 whart222 closed this as completed Dec 5, 2017
@qtothec
Copy link
Contributor Author

qtothec commented Dec 5, 2017

I'm not sure it's good practice to close issues before their associated PR is merged. Github supports automatic closing of linked issues: https://github.com/blog/1506-closing-issues-via-pull-requests

@whart222
Copy link
Member

whart222 commented Dec 5, 2017 via email

@qtothec
Copy link
Contributor Author

qtothec commented Dec 5, 2017

Huh? I think that I'm a bit confused here because I agree with what you say about conflicting PR's, but this is an issue, not a PR.

Rendered moot by the fact that #263 was merged, but just explaining the reason for my earlier post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants