Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
benchmark-pfm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
benchmark-pfm
Commits
c21bdd2d
Commit
c21bdd2d
authored
1 year ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Initial commit.
parents
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+20
-0
20 additions, 0 deletions
.gitignore
matlab/write_steady_state.m
+20
-0
20 additions, 0 deletions
matlab/write_steady_state.m
with
40 additions
and
0 deletions
.gitignore
0 → 100644
+
20
−
0
View file @
c21bdd2d
models/initial-condition-*.inc
models/terminal-condition-*.inc
models/m10/*
models/+m10/*
models/m10ss/*
models/+m10ss/*
models/m20/*
models/+m20/*
models/m20ss/*
models/+m20ss/*
models/m30/*
models/+m30/*
models/m30ss/*
models/+m30ss/*
*.ipynb
*.log
This diff is collapsed.
Click to expand it.
matlab/write_steady_state.m
0 → 100644
+
20
−
0
View file @
c21bdd2d
function
write_steady_state
(
output
,
DynareModel
,
DynareOutput
)
% Write the steady state into a file (endogenous and exogenous variables)
%
% INPUTS
% - output [char] row array, name of the generated file
% - DynareModel [struct] aka M_
% - DynareOutput [struct] aka oo_
fid
=
fopen
(
output
,
'w'
);
fprintf
(
fid
,
'// File generated on %s.'
,
char
(
datetime
));
skipline
(
2
,
fid
)
for
i
=
1
:
DynareModel
.
orig_endo_nbr
fprintf
(
fid
,
'%s = %f;\n'
,
DynareModel
.
endo_names
{
i
},
DynareOutput
.
steady_state
(
i
));
end
skipline
(
2
,
fid
)
for
i
=
1
:
DynareModel
.
exo_nbr
fprintf
(
fid
,
'%s = %f;\n'
,
DynareModel
.
exo_names
{
i
},
DynareOutput
.
exo_steady_state
(
i
));
end
fclose
(
fid
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment