Skip to content
Snippets Groups Projects
Select Git revision
  • f11048f2dce6ebc31abc4b25ca3c995d1470e224
  • master default protected
  • julia protected
  • 6.x protected
  • python-codegen
  • llvm-15 protected
  • 5.x protected
  • 4.6 protected
  • uop
  • rework_pac
  • aux_vars_fix
  • julia-6.4.0
  • julia-6.3.0
  • julia-6.2.0
14 results

DynareMain2.cc

  • Houtan Bastani's avatar
    0ff7a9d2
    introduce command line options: `exclude_eqs` and `include_eqs` · 0ff7a9d2
    Houtan Bastani authored
    Allows for the inclusion/exclusion of a set of equations, specified either on the command line or in a text file.
    
    If the equation has a single endogenous variable on the LHS, then the equation is moved. If not, if the equation has an `endogenous` tag then that variable is removed along with this equation. If not, then an error is thrown.
    
    As a command line argument, `exclude_eqs` can take the form (same syntax for `include_eqs`):
    * `exclude_eqs=eq1 to remove all equations declared as `[name=eq1]`
    * `exclude_eqs=[eq 1, eq 2]` to remove all equations declared as `[name=eq 1]` or `[name=eq 2]`
    * `exclude_eqs=[tagname=X]` to remove all equations declared as `[tagname=X]`
    * `exclude_eqs=[tagname=(X, Y)]` to remove all equations declared as `[tagname=X]` or `[tagname=Y]`
    
    When declared in a file, the file should be of the form:
    ```
    eq 1
    eq 2
    ```
    to remove all equations declared as `[name=eq 1]` or `[name=eq 2]`.
    
    It should be of the form:
    ```
    tagname=
    X
    Y
    ```
    to remove all equations declared as `[tagname=X]` or `[tagname=Y]`.
    0ff7a9d2
    History
    introduce command line options: `exclude_eqs` and `include_eqs`
    Houtan Bastani authored
    Allows for the inclusion/exclusion of a set of equations, specified either on the command line or in a text file.
    
    If the equation has a single endogenous variable on the LHS, then the equation is moved. If not, if the equation has an `endogenous` tag then that variable is removed along with this equation. If not, then an error is thrown.
    
    As a command line argument, `exclude_eqs` can take the form (same syntax for `include_eqs`):
    * `exclude_eqs=eq1 to remove all equations declared as `[name=eq1]`
    * `exclude_eqs=[eq 1, eq 2]` to remove all equations declared as `[name=eq 1]` or `[name=eq 2]`
    * `exclude_eqs=[tagname=X]` to remove all equations declared as `[tagname=X]`
    * `exclude_eqs=[tagname=(X, Y)]` to remove all equations declared as `[tagname=X]` or `[tagname=Y]`
    
    When declared in a file, the file should be of the form:
    ```
    eq 1
    eq 2
    ```
    to remove all equations declared as `[name=eq 1]` or `[name=eq 2]`.
    
    It should be of the form:
    ```
    tagname=
    X
    Y
    ```
    to remove all equations declared as `[tagname=X]` or `[tagname=Y]`.