题目
题目
单项选择题

位置14的问题 You want to minmize a differentiable function f(x,y) but decide to use scipy.optimize.fsolve instead of scipy.optimize.minimize. Which of the following equations, or systems of equations, would you need to solve using fsolve to find the minimum of f(x,y)? Let fx(x,y) and fy(x,y) denote the partial derivatives of f with respect to x and y, respectively. fy(x,y)=0fx(x,y)=0 and fy(x,y)=0fx(x,y)=0f(x,y)=0You cannot find the minimum of f(x,y) using fsolve.

选项
A.𝑓 𝑦 ( 𝑥 , 𝑦 ) = 0
B.𝑓 𝑥 ( 𝑥 , 𝑦 ) = 0 and 𝑓 𝑦 ( 𝑥 , 𝑦 ) = 0
C.𝑓 𝑥 ( 𝑥 , 𝑦 ) = 0
D.𝑓 ( 𝑥 , 𝑦 ) = 0
E.You cannot find the minimum of 𝑓 ( 𝑥 , 𝑦 ) using fsolve.
查看解析

查看解析

标准答案
Please login to view
思路分析
The problem asks which equations you would solve with fsolve to locate the minimum of a differentiable function f(x, y). In optimization, a necessary condition for a (interior) minimum is that all first-order partial derivatives vanish, i.e., the gradient is zero. This means you must set both fx(x, y) = 0 and fy(x, y) = 0 and solve this system. Option 1: fy(x, y) = 0 by itself. While setting fy = 0 is a valid component of the gradient ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!