def sq_vidx(self, i, ltrip_of_idx):
    """Computes the index of the optimal distribution (q_vars) in the optimal solution of the Exponential Cone Programming

        Args:
             i: int
             ltrip_of_idx: int - length of triplet t,u,v 
        Returns:
             int
    """
    
    return 3*ltrip_of_idx + i