Projet du cours MPRI 2.24.2 "Résolution de problèmes d'optimisation avec heuristiques de recherche" : https://wikimpri.dptinfo.ens-cachan.fr/doku.php?id=cours:c-2-24-2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

modeling.gpl 1.3KB

  1. set datafile separator ';'
  2. # Set first two line styles to blue (#0060ad) and red (#dd181f)
  3. set style line 1 \
  4. linecolor rgb '#0060ad' \
  5. linetype 1 linewidth 2 \
  6. pointtype 7 pointsize 1.5
  7. set style line 2 \
  8. linecolor rgb '#dd181f' \
  9. linetype 1 linewidth 2 \
  10. dashtype 3 \
  11. pointtype 5 pointsize 1.5
  12. set style line 3 \
  13. linecolor rgb '#0060ad' \
  14. linetype 1 linewidth 2 \
  15. pointtype 7 pointsize 1.5
  16. set style line 4 \
  17. linecolor rgb '#00ff00' \
  18. linetype 1 linewidth 2 \
  19. pointtype 7 pointsize 1.5
  20. set ylabel "proba"
  21. set xlabel "n"
  22. f1(x) = m1*x + b1
  23. f2(x) = m2*x + b2
  24. f3(x) = m3*x + b3
  25. fit f1(x) 'complete-crossover-proba-modeling.csv' using 1:2 via m1,b1
  26. fit f2(x) 'complete-crossover-proba-modeling.csv' using 1:3 via m2,b2
  27. fit f3(x) 'complete-crossover-proba-modeling.csv' using 1:4 via m3,b3
  28. plot 'complete-crossover-proba-modeling.csv' using 1:2 with lines linestyle 1, \
  29. '' using 1:3 with lines linestyle 2, \
  30. '' using 1:4 with lines linestyle 3, \
  31. '' using 1:5 with lines linestyle 4, \
  32. f1(x) title sprintf("y=%.2fx+%.2f", m1, b1), \
  33. f2(x) title sprintf("y=%.2fx+%.2f", m2, b2), \
  34. f3(x) title sprintf("y=%.2fx+%.2f", m3, b3)