SeaPearlZoo.jl

SeaPearl's pool of examples
Author corail-research
Popularity
17 Stars
Updated Last
11 Months Ago
Started In
July 2020

SeaPearlZoo

This project provides some examples of SeaPearl.jl's utilisation. One will find good practices to run experiences with SeaPearl.jl.

Launch graph coloring learning

First, clone SeaPearlZoo locally:

$ git clone https://github.com/corail-research/SeaPearlZoo.jl

Now, making sure you have Julia 1.7 installed, go to the Graph-Coloring directory.

$ cd SeaPearlZoo/learning_cp/graph_coloring

Now, activate and instantiate (download and install all the packages) the environment:

$ julia
julia> ]
(@v1.7) pkg> activate . 
(graph_coloring) pkg> instantiate

Go back to the julia REPL by pressing backspace.

Finally, you can launch the graph_coloring.jl file :

julia> include("graph_coloring.jl")

Here you should see a ProgressBar showing you the evolution of the training and then the progression of the benchmarking. You will end up with csv files stored in the same directory to measure the performances. The trained weights will also be stored in a BSON file.

Repo organisation

  • classic_cp (just constraint programming problems without learning)
    • All-interval_Series
    • graph_coloring
    • eternity2
    • jobshop
    • kidney_exchange
    • knapsack
    • latin
    • nqueens
    • tsptw
  • learning_cp (using SeaPearl.jl to have an agent learn a value selection heuristic)
    • eternity2
    • graph_coloring
    • kidney_exchange
    • knapsack
    • latin
    • nqueens
    • tsptw

Used By Packages

No packages found.