First, exemplary not-minimal-but-very-structured reproducible example
The first time you call mpc_run_nodewise for t=0, you add v(1)==v_k_i to the model, and at that point v_k_i is 305. You also make v(1) a parameter in the problem. When you then call the optimizer object with a value to be replaced with v(1), you will call it with v_k_i = 2.960000000194705e+02, and v_k_i is supposed to replace the parameter v(1), so you effectively instantiate the constraint as 296=305. YALMIP detects this immediately, and returns infeasible
You seem to have mixed up something in the logic. No reason to have v(1)==v_k_i in the model (that's what you would do if you wanted to solve it for the constant value v_k_i (t==0) only). Just declare v(1) as the parameter, and you are done