We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 667ef88 commit 2c90f7eCopy full SHA for 2c90f7e
sdp_par_model/evaluate.py
@@ -66,7 +66,7 @@ def optimize_lambdified_expr(lam, bound_lower, bound_upper):
66
67
# Lower bound cannot be higher than the uppper bound.
68
if bound_lower < bound_upper:
69
- result = opt.minimize_scalar(lam, bounds=(bound_lower, bound_upper), method='bounded')
+ result = opt.minimize_scalar(lam, bounds=(float(bound_lower), float(bound_upper)), method='bounded')
70
if not result.success:
71
warnings.warn('WARNING! : Was unable to optimize free variable. Using a value of: %f' % result.x)
72
# else:
0 commit comments