要寫matlab指令又要再找一次
還是整理一下在這邊好了
基本中的基本:
clc : 清除command....and error windows - clear : 清除所有變數
- clf : 清除圖形
Consider an arbitrary maximization (or minimization) problem where the objective function f(x,r) depends on some parameters r:
The function f *(r) is the problem's optimal-value function — it gives the maximized (or minimized) value of the objective function f(x,r)as a function of its parameters r.
Let x*(r) be the (arg max) value of x, expressed in terms of the parameters, that solves the optimisation problem, so that f*(r)=f(x*(r),r). The envelope theorem tells us how f*(r) changes as a parameter changes, namely:
That is, the derivative of f*(r) with respect to ri is given by the partial derivative of f(x,r) with respect to ri, holding x fixed, and then evaluating at the optimal choice x=x*(r).
http://en.wikipedia.org/wiki/Envelope_theorem