ModelFlowIb 2.90__tar.gz → 2.91__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {modelflowib-2.90 → modelflowib-2.91}/PKG-INFO +1 -1
- {modelflowib-2.90 → modelflowib-2.91}/modelflowib.egg-info/PKG-INFO +1 -1
- {modelflowib-2.90 → modelflowib-2.91}/modelsolver_ng.py +29 -0
- {modelflowib-2.90 → modelflowib-2.91}/pyproject.toml +1 -1
- {modelflowib-2.90 → modelflowib-2.91}/README.md +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/license.md +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelBLfunk.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_Excel.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_cvx.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_dynare.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_financial_stability.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_latex.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_latex_class.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/model_parquet_mixin.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelcausality.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelclass.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelconstruct.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelconstruct_estimation.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeldash.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeldashboot.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeldashsidebar.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeldekom.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeldiff.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeldisplay.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelestimation.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelestimator_new.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelflowib.egg-info/SOURCES.txt +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelflowib.egg-info/dependency_links.txt +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelflowib.egg-info/requires.txt +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelflowib.egg-info/top_level.txt +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelgrab.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelgrabexcel.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelgrabgdx.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelgrabgekkobank.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelgrabwf2.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelhelp.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelhtml.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelinput_shiny.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelinvert.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeljupyter.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeljupytermagic.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelmacrograb.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelmanipulation.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelmf.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelnet.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelnewton.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelnormalize.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelpattern.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelreport.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modeluserfunk.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelvis.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelwidget.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelwidget_core.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/modelwidget_input.py +0 -0
- {modelflowib-2.90 → modelflowib-2.91}/setup.cfg +0 -0
|
@@ -3876,3 +3876,32 @@ class Solver_ng_Mixin:
|
|
|
3876
3876
|
if databank is None:
|
|
3877
3877
|
databank = self.basedf
|
|
3878
3878
|
return NewtonStackFbminSolver(self)(databank, *args, **kwargs)
|
|
3879
|
+
|
|
3880
|
+
def stack_info(self):
|
|
3881
|
+
"""Print the size of the last stacked Newton system (``newtonstack_ng``):
|
|
3882
|
+
the periods solved together, the pro/core/epi split, the stacked
|
|
3883
|
+
Jacobian and the nonzeros of its LU factorization. Call it after a
|
|
3884
|
+
solve."""
|
|
3885
|
+
diff = getattr(self, "ng_newton_diff_stack", None)
|
|
3886
|
+
jac = getattr(diff, "stacked", None)
|
|
3887
|
+
if jac is None:
|
|
3888
|
+
raise Exception("No stacked Newton system yet: solve with newtonstack_ng first")
|
|
3889
|
+
per = getattr(self, "ng_old_stack_periode", self.current_per)
|
|
3890
|
+
n, nunknown = jac.shape[0], len(diff.endovar)
|
|
3891
|
+
print(f"Periods solved together : {len(per)} ({per[0]} to {per[-1]})")
|
|
3892
|
+
print(f"Endogenous variables : {len(self.endogene)}")
|
|
3893
|
+
if getattr(self, "ng_newton_diff_stack_key", "full") != "full":
|
|
3894
|
+
s = self.ng_stack_split_struct
|
|
3895
|
+
print(f" core / prolog / epilog : {len(s['core'])} / {len(s['pro'])} / {len(s['epi'])}")
|
|
3896
|
+
print(f"Newton unknowns per period : {nunknown}")
|
|
3897
|
+
print(f"Stacked Jacobian : {n:,} x {n:,} = {n * n:,} elements")
|
|
3898
|
+
print(f" nonzero : {jac.nnz:,} ({jac.nnz / n / n:.4%}), {jac.nnz / n:.1f} per row")
|
|
3899
|
+
# get_solvestacked keeps the SuperLU solve method; its object holds L and U
|
|
3900
|
+
lu = getattr(getattr(diff, "solvestacked", None), "__self__", None)
|
|
3901
|
+
if hasattr(lu, "L"):
|
|
3902
|
+
fill = lu.L.nnz + lu.U.nnz
|
|
3903
|
+
print(f"LU factorization (SuperLU {getattr(diff, 'permc_spec', None) or 'NATURAL'})")
|
|
3904
|
+
print(f" nonzero in L + U : {fill:,} ({fill / jac.nnz:.1f} times the Jacobian)")
|
|
3905
|
+
print(f" memory, about : {fill * 12 / 1e6:,.1f} MB")
|
|
3906
|
+
else:
|
|
3907
|
+
print("LU factorization : nonzeros not available (factorizer='umfpack')")
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "modelflowib" # PyPI distribution name
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.91" # OVERWRITTEN at build time from MF_VERSION
|
|
8
8
|
# (set_pyproject_version.py / make_pip.py -v)
|
|
9
9
|
description = "A tool to solve and manage dynamic economic and financial models"
|
|
10
10
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|