Equation Templates

虽然觉得hexo蛮好玩的,但是目前还没有足够的动力用hexo作为blog。这里就作为一个临时记点东西的地方吧,估计以后很少会在这里写东西。

hexo有个缺点是,每次修改一点都把所有文件重新generate一遍,然后要commit一堆上去…

$$\begin{eqnarray} b_{t+1} = \left\{ \begin{array}{ll} \min \{b_t + \alpha_{\mathrm{i}} (h_t-c_t), B_\mathrm{max} \} \quad & h_t > c_t \\ b_t - \alpha_\mathrm{o}^{-1}(c_t-h_t) \quad & \mathrm{otherwise.} \end{array} \right. \label{eqn:battery_transition_ineff} \end{eqnarray}$$ $$ \begin{equation} \begin{aligned} \underset{x}{\min} & & & U(x) \\ \text{s.t.} & & & f_i(x) \leq b_i, \; i = 1, \ldots, m. \\ & & & x > 0 \end{aligned} \label{eqn:} \end{equation}$$