+ changed check for intial setting of old_w. (matrix != None does not work in cvxopt)