-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My parameters are not updated when I re-solve it? #107
Comments
When you do A = Parameter(model, val=A_val) the model stores a reference to the A_val = randn(n, n) you've now made it so that the variable A_val .= randn(n, n) # note the dot or better yet: randn!(A) to modify the matrix See e.g. https://discourse.julialang.org/t/question-regarding-references/7610/7?u=tkoolen for more info on how references work in Julia. |
Feel free to ask more usage questions by the way, either here or (perhaps preferably) on discourse. Just closed the issue because there are no actionable items in the codebase. |
Thank you @tkoolen for your response. |
Hi,
I want to use parametron but when I test it for a simple problem, my parameters are not updated when I resolve it.
Here is the result
The text was updated successfully, but these errors were encountered: