Commit 00ab6bb5 authored by Dr.李's avatar Dr.李

made mv optimizer more stable

parent ea0f6172
...@@ -37,7 +37,7 @@ def mean_variance_builder(er: np.ndarray, ...@@ -37,7 +37,7 @@ def mean_variance_builder(er: np.ndarray,
cubound, cubound,
lam) lam)
if optimizer.status() == 0: if optimizer.status() == 0 or optimizer.status() == 1:
status = 'optimal' status = 'optimal'
else: else:
status = optimizer.status() status = optimizer.status()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment