I thank you, to solve the mistake of following scilab model.
When I run the model in scilab, facing the following error:
Wrong size for argument: Incompatible dimensions.
I am looking forward for your kind response.
q_best = 0. 0. 0. 0. q_best contains only 4 elements. You are trying to resize it into (14*4,1) column vector. You need to have 56 elements in q_best for the matrix function to work.