Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 875 Bytes

File metadata and controls

39 lines (32 loc) · 875 Bytes

Install

C++ Installs

sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y libeigen3-dev

Python venv and installs

sudo apt install -y python3-tk tk-dev
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install pybind11 numpy scipy wheel setuptools pytest matplotlib

Install for rebuild after code edits

export EIGEN_INCLUDE_DIR=/usr/include/eigen3
pip install -v -e .

Test and Run

Run parity tests

pytest -q -s

Reproduce results

python main.py --compute_results --plot --nx 4 --N 20 --num_repeats 100
python main.py --compute_results --plot --nx 4 --N 20 --num_repeats 100 --infeasible_start

python main.py --time_solvers --plot_time_solvers --num_repeats 100
python main.py --time_solvers --plot_time_solvers --num_repeats 100 --infeasible_start