Git Product home page Git Product logo

burer-monteiro-path-following's Introduction

low-rank-path-following

Low-rank path-following code

The file main.py allows the user to choose whether to load existing problem data or create new ones. The data are stored in a dictionary contained pickled file "file_name.pkl". The default structure of the dictionary is

stepsizes = [10**k for k in range(1, 7)] exp_dict = {'exp_data' : {'A_init' : [], 'A_pert' : [], 'b_init' : [], 'b_pert' : [], 'C_init' : [], 'C_pert' : []},
'PC_residuals' : {str(d) : [] for d in stepsizes}, 'PC_SDP_residuals' : {str(d) : [] for d in stepsizes}, 'PC_runtime' : {str(d) : [] for d in stepsizes}, 'SCS_residuals' : {str(d) : [] for d in stepsizes}, 'SCS_runtime' : {str(d) : [] for d in stepsizes}, 'IPM_residuals' : {str(d) : [] for d in stepsizes}, 'IPM_runtime' : {str(d) : [] for d in stepsizes}}

1a. LOAD_DATA is set to False. The user is asked to enter a name for the file. The a pickled file with the desired name is created in the experiments folder. The user is asked to enter the desired number of instances to create and test. The user is asked to decide whether to creat a Time-Varying Max Cur Relaxation problem or a random SDP (see create_problem_data.py). The user is asked to enter the dimensions of the problem.

1b. LOAD_DATA is set to True. DATA_FILE is string with the name of a .pkl file contained in the experiments folder, e.g. 'SIAM_DATA'. The data dictionary is load, potentially already populated with the experiments results.

  1. RUN_PATH_FOLL, RUN_MOSEK, RUN_SCS are boolean to select which procedures to use.
  2. SAVE_EXP requires to save the results on the pkl file.
  3. PLOT_EXP requires to plot the runtime and the residual accuracy of the results of the experiments.

The second-to-last block of inputs for the constructor of the class _Experiments corresponds to the parameters of the path-folllowing procedure. The last block of inputs for the function exp._Experiments corresponds to the accuracy parameters of the procedures.

The solutions for the TV-SDP are contained in the list attribute _primal_solutions_list of the _PathFollowing class.

For a detailed explaination of the path-following algorithm we refer to https://arxiv.org/pdf/2210.08387.pdf.

burer-monteiro-path-following's People

Contributors

antoniobellon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.