I'm trying to formalize the concept os equivalence between optimization problems. Here are the definitions I'm working with:
1) An optimization problem is a pair $(S,f)$ where $S$ is a set and $f\colon S\to\overline{\mathbb{R}}$ is a function.
2) Let $P=(X,f)$ and $Q=(Y,g)$ be optimization problems. A function $\varphi\colon X\to Y$ is a homomorphism from $P$ to $Q$ if$$g(\varphi(x))\leq f(x) \text{, for each }x\in X. $$
3) Let $P$ and $Q$ both be optimization problems. We say that $P$ and $Q$ are equivalent if there exists a homomorphism from $P$ to $Q$ and vice-versa.
One can easily check that this definition of equivalence satisfies all the requirements from an equivalence relation (reflexivity,transitivity, and symmetry). However, since an equivalence relation is defined within a set, I would need to have the set of all optimization problems for it to work, and this is impossible (leading to Russel's Paradox).
Does anyone know how could I fix this? Does my broken equivalence relation still have a name at least?