# Optimization using Python/MATLAB

Given the following optimization problem: Given positive integers $n_1, n_2, \dots, n_m$ and real numbers $P_1, P_2, \dots P_m$. Besides these, given positive real numbers $a_{i,j,l}$ for $1 \leq i \leq n_l$, $1 \leq l\leq m$ and $0 \leq j \leq k$, and we try to find real numbers $(\beta_1, \beta_2, \dots, \beta_k)$ that minimize $$\sum_{l=1}^m (\sum_{i=1}^{n_l} a_{i,0,l} a_{i,1,l}^{\beta_1} a_{i,2,l}^{\beta_2} \cdots a_{i,k,l}^{\beta_k} -P_l )^2$$

Which method you think would be efficient to be implemented in MATLAB/Python?