Үүнийг мессежээр илгээх: Algorithms for worst-case design and applications to risk management