Skip to content

We try to pursue well-known supply and use tables problem from the nonlinear optimization perspective.

Notifications You must be signed in to change notification settings

AlexeyRogS/NonLinearOptimization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 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

We try to pursue well-known supply and use tables problem from the nonlinear optimization perspective.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published