modifying bie solver to get weight vector