This project demonstrates solving linear programming problems using Julia with the JuMP modeling language and Clp solver.
- Julia 1.6 or later installed on your system
- Git (for cloning the repository)
- Clone the repository:
git clone <repository-url>
cd CS52000_final_project
- Start Julia and activate the project environment:
julia --project=.
- Install required packages:
using Pkg
Pkg.add("MatrixDepot")
Pkg.add("Clp")
Pkg.add("JuMP")
Pkg.add("SparseArrays") # should already be in stdlib
- Start Julia in the project directory:
julia --project=.
- Run the example code:
include("example.jl")
example.jl
: Main example file demonstrating linear programming problem solvingProject.toml
: Project dependencies and configurationManifest.toml
: Exact versions of all dependencies
- MatrixDepot: For accessing test matrices
- Clp: Linear programming solver
- JuMP: Mathematical optimization modeling language
- SparseArrays: Standard library for sparse matrix operations
- The example uses the "lp_afiro" test problem from the LPnetlib collection
- The code demonstrates how to:
- Load a test matrix
- Set up a linear programming problem
- Solve it using the Clp solver