Optimize over a Discrete Set
The ability to identify the biggest or smallest among a set of explicitly given alternatives.
Question template
Imagine you are a healthcare provider with a preference for work-life balance. Your satisfaction is determined by the utility function utility func over two activities: the number of house calls you make (x) and the number of hours you dedicate to personal health and fitness (y). Bearing in mind your utility function, which bundle aligns with your preferences?
Use it
from datasets import load_dataset
ds = load_dataset("narunraman/steer", "micro_utility")curl "https://steer-benchmark.cs.ubc.ca/api/sample?element_name=micro_utility&n=5&seed=42"
See the Reference for the parameters.