-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmobo_assignment.py
More file actions
60 lines (41 loc) · 2.73 KB
/
Copy pathmobo_assignment.py
File metadata and controls
60 lines (41 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ======================================================================================
# ASSIGNMENT 2: Optimizing an Epoxy Formulation
# Your assignment is to use Honegumi to develop an optimization script to help you
# identify a set of pareto optimal parameters that balance the tradeoff between
# the tensile strength and yield strength of an epoxy materials. Your
# experimental budget is limited to 40 experiments. A synthetic objective
# function has been provided that will serve as a proxy for real experimental
# measurements. Refer to the README for specifics regarding each task.
# ======================================================================================
from utils import set_seeds, measure_epoxy_old
set_seeds() # setting the random seed for reproducibility
# --------------------------------------------------------------------------------------
# TASK A: Use Honegumi to set up and run the optimization problem.
# --------------------------------------------------------------------------------------
import numpy as np
from ax.service.ax_client import AxClient, ObjectiveProperties
ax_client_full = AxClient(random_seed=42) # ensure reproducibility
# TODO: Your Code Goes Here
# --------------------------------------------------------------------------------------
# TASK B: Report solutions that maximize each individual objective.
# --------------------------------------------------------------------------------------
# TODO: Your Code Goes Here
# --------------------------------------------------------------------------------------
# TASK C: Report the number of optimal solutions that meet sustainability targets.
# --------------------------------------------------------------------------------------
# TODO: Your Code Goes Here
# --------------------------------------------------------------------------------------
# TASK D: Apply custom thresholds to the optimization problem.
# --------------------------------------------------------------------------------------
import numpy as np
from ax.service.ax_client import AxClient, ObjectiveProperties
ax_client_thresh = AxClient(random_seed=42) # ensure reproducibility
# TODO: Your Code Goes Here
# --------------------------------------------------------------------------------------
# TASK E: Report the number of optimal solutions that meet sustainability targets.
# --------------------------------------------------------------------------------------
# TODO: Your Code Goes Here
# --------------------------------------------------------------------------------------
# TASK F: Compute the tradeoff between strength and glass transition temperature.
# --------------------------------------------------------------------------------------
# TODO: Your Code Goes Here