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

Optimizer hotfix #673

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Optimizer hotfix #673

wants to merge 1 commit into from

Conversation

sklbancor
Copy link
Collaborator

could fix the excessive logging problem; can not really cause any havoc (famous last words)

@sklbancor sklbancor changed the base branch from main to develop May 23, 2024 22:58
@sklbancor sklbancor requested a review from zavelevsky May 23, 2024 22:59
@sklbancor sklbancor marked this pull request as ready for review May 23, 2024 22:59
if max(p) > 1e50:
raise self.ConvergenceError(f"price vector component exceeds maximum price [p={p}]")
if min(p) < 1e-50:
raise self.ConvergenceError(f"price vector component below minimum price [p={p}]")
Copy link
Collaborator

Choose a reason for hiding this comment

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

The 'overflow' warnings are emitted right before you raise this exception, at:

p = np.exp(plog10 * np.log(10))

Consider raising it prior to that line, by applying a similar check on plog10 (since p is not yet available).

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

Successfully merging this pull request may close these issues.

2 participants