fixed extracting dual variables for  for  to match the order of A and the sense for gmodel