Equality constrained entropy maximization. Consider the equality constrained entropy maximization problem
minimizesubject tof(x)=∑i=1nxilogxiAx=b,
with domf=R++n and A∈Rp×n, with p<n. (See exercise 10.9 for some relevant analysis.)
Generate a problem instance with n=100 and p=30 by choosing A randomly (checking that it has full rank), choosing x^ as a random positive vector (e.g., with entries uniformly distributed on [0,1]) and then setting b=Ax^. (Thus, x^ is feasible.)
Compute the solution of the problem using the following methods.
(a) Standard Newton method. You can use initial point x(0)=x^.
(b) Infeasible start Newton method. You can use initial point x(0)=x^ (to compare with the standard Newton method), and also the initial point x(0)=1.
(c) Dual Newton method, i.e., the standard Newton method applied to the dual problem.
Verify that the three methods compute the same optimal point (and Lagrange multiplier). Compare the computational effort per step for the three methods, assuming relevant structure is exploited. (Your implementation, however, does not need to exploit structure to compute the Newton step.)