Collateral Optimization Algorithms