Skip to content
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

Matrix parameters don't work #68

Closed
Nic2020 opened this issue Jun 7, 2024 · 1 comment · Fixed by #69
Closed

Matrix parameters don't work #68

Nic2020 opened this issue Jun 7, 2024 · 1 comment · Fixed by #69
Assignees
Labels
bug Something isn't working

Comments

@Nic2020
Copy link
Member

Nic2020 commented Jun 7, 2024

Example:

module Example
    using ModelBaseEcon
    model = Model()
    @variables model x
    @shocks model e
    @parameters model begin
        c = [0.1 0.2]
    end
    @equations model begin
        x[t] = c[1,1] * x[t-1] + c[1,2] * x[t-2] + e[t]
    end
    @initialize model
end

Example.model.equations[:_EQ1].resid
# Shows c[1] everywhere: var"#x#0#" - (c[1] * var"#x#-1#" + (c[1] * var"#x#-2#" + var"#e#0#"))
# Instead of: var"#x#0#" - (c[1,1] * var"#x#-1#" + (c[1,2] * var"#x#-2#" + var"#e#0#"))
@Nic2020 Nic2020 added the bug Something isn't working label Jun 7, 2024
@bbejanov bbejanov self-assigned this Jun 7, 2024
@Nic2020
Copy link
Member Author

Nic2020 commented Jun 7, 2024

This was fixed in v0.6.3 under #67 (under model.jl line 1043):

name, index = ex.args was replaced by name, index... = ex.args

bbejanov added a commit that referenced this issue Jun 7, 2024
bbejanov added a commit that referenced this issue Jun 7, 2024
bbejanov added a commit that referenced this issue Jun 7, 2024
bbejanov added a commit that referenced this issue Jun 7, 2024
bbejanov added a commit that referenced this issue Jun 7, 2024
bbejanov added a commit that referenced this issue Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants