Optimization-based computation and integration of ordered measures | Synapse