Skip to content

Commit 2c90f7e

Browse files
committed
Fix sympy Float confusing scipy
1 parent 667ef88 commit 2c90f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdp_par_model/evaluate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def optimize_lambdified_expr(lam, bound_lower, bound_upper):
6666

6767
# Lower bound cannot be higher than the uppper bound.
6868
if bound_lower < bound_upper:
69-
result = opt.minimize_scalar(lam, bounds=(bound_lower, bound_upper), method='bounded')
69+
result = opt.minimize_scalar(lam, bounds=(float(bound_lower), float(bound_upper)), method='bounded')
7070
if not result.success:
7171
warnings.warn('WARNING! : Was unable to optimize free variable. Using a value of: %f' % result.x)
7272
# else:

0 commit comments

Comments
 (0)