I have a mathematical model that looks like follows:
minimize,
$$J(x) = \sum_{i=1}^{n}(c_i.x)^2$$
where, $x \in \mathbb{R}^m$ and $c_i \in \mathbb{R}^m$ are constants. But the software I'm using (Gurobi) seem to be demanding the objective function in the format
minimize,
$$J(x) = x^TQx + q^Tx+b$$
How can I convert the format in the above expression to format of below expression?
Any help will be greatly appreciated.