Skip to content

Commit 39fae00

Browse files
lowered max finite number to 1e295
1 parent cafc77e commit 39fae00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyoptgra/optgra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _isfinite_bounds(bounds: List[float]) -> List[bool]:
8888
# define a maximum allowed bound value to consider as finite
8989
# We need this to avoid infinities in OPTGRA that are caused by very large bounds which are
9090
# de-factor meant infinite for OPTGRA
91-
max_allowed_bound = 1e300 # the largest representable REAL*8 is ~1.798 × 10^308
91+
max_allowed_bound = 1e295 # the largest representable REAL*8 is ~1.798 × 10^308
9292
return [np.isfinite(b) and abs(b) < max_allowed_bound for b in bounds]
9393

9494

0 commit comments

Comments
 (0)