MSEval Material Choice
Source: examples/decision/mseval_material_choice.py
Introduction
Inspect one MSEval empirical material-selection decision problem.
Technical Implementation
This page is generated from the top-of-file module docstring and the example source code. The full script is included below for direct inspection.
1from __future__ import annotations
2
3import design_research_problems as derp
4
5
6def main() -> None:
7 """Print a compact summary aligned with the laptop decision demo."""
8 problem = derp.get_problem("decision_mseval_safety_helmet_lightweight")
9 top_three = problem.rank_evaluations()[:3]
10 best = problem.best_evaluation()
11
12 print(problem.metadata.problem_id)
13 print("objective", problem.objective_specs[0].key)
14 print("candidate-kind", problem.candidate_kind)
15 print("candidate-count", problem.candidate_count)
16 print("best", best.candidate_label, round(best.objective_value, 6))
17 print(
18 "top-three",
19 [(entry.candidate_label, round(entry.objective_value, 6)) for entry in top_three],
20 )
21
22
23if __name__ == "__main__":
24 main()
Expected Results
Run Command
PYTHONPATH=src python3 examples/decision/mseval_material_choice.py
Run the command shown below from repository root. Output should summarize the problem setup, a baseline solution, or diagnostic values relevant to this example.