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.

45 lines
1.8 KiB

  1. // Max probability of completing task 1
  2. "single_task1": Pmax=? [ F task1_completed ]
  3. // Max possible expected W1 (size of successful team)
  4. "single_w1": R{"w_1_total"}max=? [ F "end" ]
  5. // Max possible expected W2 (num tasks completed)
  6. "single_w2": R{"w_2_total"}max=? [ F "end" ]
  7. // Values computed using above queries:
  8. const double q1 =
  9. n_sensors=2 ? 0.9795918367346945 :
  10. n_sensors=3 ? 2.3265306122448983 :
  11. n_sensors=4 ? 2.551020408163265 :
  12. n_sensors=5 ? 2.8979591836734775 :
  13. 0.0;
  14. const double q2 =
  15. n_sensors=2 ? 0.7142857142857146 :
  16. n_sensors=3 ? 1.2448979591836744 :
  17. n_sensors=4 ? 1.4285714285714293 :
  18. n_sensors=5 ? 1.6734693877551006 :
  19. 0.0;
  20. // Numerical: maximise probability of completing task 1
  21. // with 95% of possible value for expected W1 (size of successful team)
  22. "num_task1": multi(Pmax=? [ F task1_completed ], R{"w_1_total"}>=(0.95*q1) [ F true ])
  23. // Numerical (3-objective): maximise probability of completing task 1
  24. // with 95% of possible value for expected W1 (size of successful team)
  25. // and also at least 0.5 probability of completing task 2
  26. "num_task1_3": multi(Pmax=? [ F task1_completed ], R{"w_1_total"}>=(0.95*q1) [ F true ], P>=0.5 [ F task2_completed ])
  27. // Other numerical queries:
  28. multi(R{"w_1_total"}max=? [ F true ], R{"w_2_total"}>=(0.95*q2) [ F true ])
  29. multi(R{"w_2_total"}max=? [ F true ], R{"w_1_total"}>=(0.95*q1) [ F true ])
  30. // Pareto: maximise probability of completing task 1 and expected W1 (size of successful team)
  31. "pareto": multi(Pmax=? [ F task1_completed ], R{"w_1_total"}max=? [ F true ])
  32. // Pareto (3-objective): maximise probability of completing tasks 1/2 and expected W1 (size of successful team)
  33. "pareto3": multi(Pmax=? [ F task1_completed ], R{"w_1_total"}max=? [ F true ], Pmax=? [ F task2_completed ])