% Optimize minimize [ cycle(X,Y) : cost(X,Y,C) = C ].