Skip to content
Snippets Groups Projects
Commit aaaa14ee authored by erwan's avatar erwan
Browse files

Chore: use less points in the coloring campaign

parent 20174b01
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ let generate_du_dur graph plan_udg t : unit = ...@@ -23,6 +23,7 @@ let generate_du_dur graph plan_udg t : unit =
) )
(* Deadcode: (* Deadcode:
let compute_attr : (Topology.t -> string list -> (string * string) list) = let compute_attr : (Topology.t -> string list -> (string * string) list) =
fun g -> fun g ->
List.map List.map
......
#use "genExpeMakefiles.ml";; #use "genExpeMakefiles.ml";;
precision := 0.01;; precision := 0.01;;
(* 0.01 means that we simulate until the Interval Confidence (* 0.01 means that we simulate until the Confidence Interval
size of the 3 complexity numbers under estimation is smaller size of the 3 complexity numbers under estimation is smaller
than 1% of their current estimation. than 1% of their current estimation.
*) *)
...@@ -8,9 +8,12 @@ let algos = ["../../test/alea-coloring-alt"; ...@@ -8,9 +8,12 @@ let algos = ["../../test/alea-coloring-alt";
"../../test/alea-coloring-unif"; "../../test/alea-coloring-unif";
"../../test/alea-coloring"] "../../test/alea-coloring"]
let daemons = ["-sd";"-lcd";"-dd"] let daemons = ["-sd";"-lcd";"-dd"]
let cliques = List.init 25 (fun n -> Clique (20*(n+1))) (* [20; 40; ...; 500] *) (* let cliques = List.init 25 (fun n -> Clique (20*(n+1))) (* [20; 40; ...; 500] *) *)
let rings = List.init 25 (fun n -> Ring (400*(n+1))) (* [100; 500; ...; 10000] *) (* let rings = List.init 25 (fun n -> Ring (400*(n+1))) (* [400; 800; ...; 10000] *) *)
let er = List.init 25 (fun n -> ER (10*(n+1), 0.4)) (* [10; 20; ...; 2500] *) (* let er = List.init 25 (fun n -> ER (10*(n+1), 0.4)) (* [10; 20; ...; 250] *) *)
let rings = List.init 10 (fun n -> Ring (500*(n+1))) (* [500; 1000; ...; 5000] *)
let cliques = List.init 10 (fun n -> Clique (30*(n+1))) (* [30; 60; ...; 300] *)
let er = List.init 10 (fun n -> ER (30*(n+1), 0.4)) (* [30; 60; ...; 300] *)
let gen_make_rules () = let gen_make_rules () =
let fn = "Makefile.expe-rules" in let fn = "Makefile.expe-rules" in
...@@ -31,10 +34,10 @@ let gen_make_rules () = ...@@ -31,10 +34,10 @@ let gen_make_rules () =
let gen_pdf () = let gen_pdf () =
let gl = ["clique"; "ring"; "er"] in let gl = ["clique"; "ring"; "er"] in
List.iter (fun n -> sh ("rm -f "^n^".data")) gl; List.iter (fun n -> sh ("rm -f "^n^".data")) gl;
parse_log ["Uniform When Triggered","alea-coloring-unif"] gl daemons; parse_log ["Uniform When Activated","alea-coloring-unif"] gl daemons;
parse_log ["Smallest When Triggered","alea-coloring"] gl daemons; parse_log ["Smallest When Activated","alea-coloring"] gl daemons;
parse_log ["Always the Biggest","alea-coloring-alt"] gl daemons; parse_log ["Always the Biggest","alea-coloring-alt"] gl daemons;
List.iter (fun n -> sh ("./gen_pdf.r "^n^".data coloring")) gl; List.iter (fun n -> sh ("./gen_pdf_paper.r "^n^".data coloring")) gl;
() ()
;; ;;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment