def sp_vidx(i):
    """Computes the index of the optimal (p_vars) in the optimal solution of the Exponential Cone Programming
    
        Args:
             i: int

        Returns:
            int
    """
    
    return 3*i+1