Skip to content

Prediction of Supply and Use Tables based on Nonlinear Optimization

Notifications You must be signed in to change notification settings

vpozdnyakov/sut_prediction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prediction of Supply and Use Tables based on Nonlinear Optimization

Implementation of nonlinear optimization methods for prediction of Supply and Use Tables (SUTs) using historical data.

Contents of the repository

Requirements

  • numpy >= 1.17.4
  • scipy >= 1.3.1

Installation

Copy the 'MethodsFromArticle' folder to your project folder.

Example

import numpy as np
from MethodsFromArticle import predict
from MethodsFromArticle import predict_grad

# Initial supply or use matrix
sup10 = np.load('data//sup10.npy')
# Constraint vectors — summation by rows and columns
sup11 = np.load('data//sup11.npy')
u = np.sum(sup11, axis=1)
v = np.sum(sup11, axis=0)

# Available methods for prediction:
#   INS - Improved Normalized Squared Difference
#   IWS - Improved Weighted Square Differences
#   ISD - Improved Square Differences
#   RAS - RAS method
pred_sup11 = predict(sup10, u, v, method='INS')

# Proximal gradient method
pred_sup11 = predict_grad(sup10, u, v)

About

Prediction of Supply and Use Tables based on Nonlinear Optimization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • TeX 47.0%
  • Jupyter Notebook 33.2%
  • Python 19.8%