You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if self.terminal_weights is not None:
prob_arr[-1].constraints += [wplus == self.terminal_weights.values] # <-- Error Out
The error message is:
File "/home/kec/.local/lib/python3.6/site-packages/cvxportfolio/policies.py", line 374, in get_trades
prob_arr[-1].constraints += [wplus == self.terminal_weights.values]
AttributeError: can't set attribute
anyone knows how to fix this problem?
The text was updated successfully, but these errors were encountered:
On Sep 9, 2019, at 7:38 PM, Jose Ortiz ***@***.***> wrote:
A better title for the issue would be "Can't set attribute error when adding constraint in get_trades"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
kch382001
changed the title
Error out on MPO example terminal_weights
Can not set attribute Error in get_trades when adding terminal_weights constraint in MPO example
Sep 10, 2019
The terminal_weights setup in MultiPeriodOpt example seems to fail when calling run_backtest function.
python 3.6 + cvxportfolio 0.05 + cvxpy 1.0.25 + numpy 1.17.1 + pandas 0.22.0.
It error out in policies.py file:
The error message is:
anyone knows how to fix this problem?
The text was updated successfully, but these errors were encountered: