Hello everyone, I am stucked on how to write particular code for a Nash-Cournout oligopolistic equilibrium problem. I have written everything correctly and it ran successfully. The only situation I am in presently is trying to vary a particular step. To be more precise

I need code for the following:

is random for every

is random for every and

is random for every . I need to execute the following Quad program $c_j(x_j) = \frac{1}{2}x{_j}^{'} P_j x_j+ {q_j}^{'} x{_j}$. I will be glad if I can get a prompt help on this.

https://www.mathworks.com/matlabcentral/answers/uploaded_files/226241/Screenshot_20190625-093751.png

Thanks

## Best Answer