Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了解决 MATLAB 中的优化问题,我需要计算以下 norm-1 函数的梯度和 hessian:
norm1(A.x)
这里 x 是参数(n×1 向量),A 是已知的固定矩阵(n×n 矩阵)。有人看过类似的计算来指点我吗?
非常感谢。
范数 1 是绝对值的总和。并且绝对值的偏导数是 x/|x| 所以如果你有 A,你就会有类似 A_ij x_i/|x_i| 的东西