solve_for_origins

Effect

  • Let’s assume we have well stated destinations in model_parameters table. We may think about destinations as a sum of trips that arrives to origin-destination point from origins. The trips might be described by a motion exchange matrix. We end up with following equation: \(A*O=D\) where A is motion exchange matrix; O is origins vector; D is destination vector; Vectors decribes state in each origin destination point. The described function solves equation \(O=A^{(-1)} * D\). This gives origins amounts that meet specified destination considering motion exchange matrix.
  • model_parameters table is updated with new origins values