# 根据 a 求 w 和 b\*

a\* 为对偶问题的最优解，则：

$$
w\* = \sum\_{i=1}^Na^\*\_iy\_ix\_i
$$

选择a\*中一个满足$$0 \lt a\_j \lt C$$的分量$$a\_j$$，则

$$
b\* = y\_j - \sum\_{i=1}^Ny\_ia^\*\_i(x\_i \cdot x\_j)
$$

任意一个符号条件的$$a\_j$$$都能求出一个&#x62;*，*\
*最终的 b* 为所有满足条件的 b\* 的平均值。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://windmising.gitbook.io/lihang-tongjixuexifangfa/7/9.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
