No description
- Rust 97.6%
- Nix 2.4%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| problem-statement.pdf | ||
| README.md | ||
| shell.nix | ||
Max-Cut Optimization
This program try to solve the max-cut problem using various approaches.
It is divided in two parts:
- Graph handling
- Solver and optimization
Build instruction
On system running Nix
- Run
nix-shell - And build:
cargo build --release
On linux or WSL
- Make sure that rust 2024 is installed
- Make sure that pkg-config and fontconfig are installed on your machine, for debian based os:
apt install pkg-config libfontconfig1-dev - run
cargo build --release
On windows
- Make sure that rust 2024 is installed
- Simply run
cargo build --release
How to use
CLI
Every options can be listed using --help at any level
Example commands
To plot one graph of each automorphism group of 7 nodes connected graph:
./max-cut-optimization draw -n 7
To solve the max cut problem on a graph of 18 nodes build from 3 graph of 6 nodes each.
It will also plot the graph with each cut for different optimization process.
./max-cut-optimization solve -n 18 -d 3
To solve the max cut problem on a graph of 18 nodes build from 3 graph of 6 nodes each, and runs it 10 times
It won't plot any graph but display average figures for different optimization process.
./max-cut-optimization solve -n 18 -d 3 -b 10