xy 或 VectorLess[{x,y}]
对于长度为 n 的向量,如果对于所有
的元素 xi<yi 成立,则给出 True.
xκy 或 VectorLess[{x,y},κ]
对于 x 和 y,如果
,则给出 True,其中 κ 为正常凸锥.
VectorLess 
xy 或 VectorLess[{x,y}]
对于长度为 n 的向量,如果对于所有
的元素 xi<yi 成立,则给出 True.
xκy 或 VectorLess[{x,y},κ]
对于 x 和 y,如果
,则给出 True,其中 κ 为正常凸锥.
更多信息
- VectorLess 给出向量、矩阵和数组的偏序,与向量空间运算兼容,因而对于所有的
,
和
即意味着
. - VectorLess 通常用于指定约束优化、不等式求解和积分的向量不等式.
- 当 x 和 y 为
-向量时,xy 等价于
. 即为了使关系式成立,x 的每个元素都小于 y 的相应元素. - 当 x 和 y 是维数为
的数组时,xy 等价于
. 即为了使关系式成立,x 的每个元素都小于 y 的相应元素. - 如果 x 或 y 有非数字元素,xy 不会进行计算;否则通常会给出 True 或 False.
- x 是长度为 n 的向量,y 为标量时,如果对于所有
的元素 xi<y 成立,xy 给出 True. - 通过使用字符 (用
v<
或 \[VectorLess]),可用以下方式输入带有下标的向量不等式: -

VectorLess[{x,y}] 标准向量不等式 
VectorLess[{x,y},κ] 由锥 κ 定义的向量不等式 - 一般情况下,可以用合适的凸锥 κ 指定向量不等式. 集合
与 κ 相同. - 对于向量 x,
中可能的锥规范 κ 包括: -
{"NonNegativeCone", n} ![TemplateBox[{n}, NonNegativeConeList] TemplateBox[{n}, NonNegativeConeList]](Files/VectorLess.zh/9.png)
中使得
的元素{"NormCone", n} ![TemplateBox[{n}, NormConeList] TemplateBox[{n}, NormConeList]](Files/VectorLess.zh/10.png)
中使得 Norm[{x1,…,xn-1}]<xn 的元素"ExponentialCone" ![TemplateBox[{}, ExponentialConeString] TemplateBox[{}, ExponentialConeString]](Files/VectorLess.zh/11.png)
中使得
的元素"DualExponentialCone" ![TemplateBox[{}, DualExponentialConeString] TemplateBox[{}, DualExponentialConeString]](Files/VectorLess.zh/12.png)
中使得
的元素{"PowerCone",α} ![TemplateBox[{alpha}, PowerConeList] TemplateBox[{alpha}, PowerConeList]](Files/VectorLess.zh/13.png)
中使得
的元素{"DualPowerCone",α} ![TemplateBox[{alpha}, DualPowerConeList] TemplateBox[{alpha}, DualPowerConeList]](Files/VectorLess.zh/14.png)
中使得
的元素 - 对于矩阵 x,
中可能的锥规范 κ 包括: -
"NonNegativeCone" ![TemplateBox[{}, NonNegativeConeString] TemplateBox[{}, NonNegativeConeString]](Files/VectorLess.zh/15.png)
中使得
的元素{"SemidefiniteCone", n} ![TemplateBox[{n}, SemidefiniteConeList] TemplateBox[{n}, SemidefiniteConeList]](Files/VectorLess.zh/16.png)
对称正定矩阵 
- 对于数组 x,
中可能的锥规范 κ 包括: -
"NonNegativeCone" ![TemplateBox[{}, NonNegativeConeString] TemplateBox[{}, NonNegativeConeString]](Files/VectorLess.zh/17.png)
中使得
的元素 - 对于精确数量,VectorLess 在内部使用数值近似对数字进行排序. 此过程可能被全局变量 $MaxExtraPrecision 的设置所影响.
范例
打开所有单元 关闭所有单元基本范例 (3)
如果对于所有 i=1,…,n,xi < yi 为 True,x<y 给出 True:
{1, 2, 3}{2, 3, 4}如果对于任一 i=1,…,n,xi ≥ yi 成立,x<y 给出 False:
{1, 2, 3}{2, 3, 3}vi = {1, 2, 3}v当 v 被替换为数值向量空间元素时,不等式给出 True 或 False:
vi /. v -> 3vi /. v -> {2, 4, 5}RegionPlot[{-2, -3}{Subscript[x, 1], Subscript[x, 2]}, ...]RegionPlot[{Subscript[x, 1], Subscript[x, 2]}{3, 2}, ...]RegionPlot[{-2, -3}{Subscript[x, 1], Subscript[x, 2]}{3, 2}, ...]范围 (7)
v = RandomReal[1, 10];0vv1x = {1, 0};
y = {0, 1};!xyxyTableForm[{Not /@ Thread[x < y], Thread[x ≥ y]}, TableHeadings -> {{HoldForm[!Subscript[x, i] < Subscript[y, i]], HoldForm[Subscript[x, i] ≥ Subscript[y, i]]}, {1, 2}}]m1 = RandomReal[{0, 1.01}, {4, 4}];
m2 = RandomReal[{.99, 2}, {4, 4}];m1m2x = IdentityMatrix[3];y = DiagonalMatrix[{4, 5, 6}]; z = Dot[#, Transpose[#]]&[RandomReal[1, {3, 3}]];xSubscript[, {"SemidefiniteCone", 3}]yPositiveDefiniteMatrixQ[y - x]xSubscript[, {"SemidefiniteCone", 3}]zPositiveDefiniteMatrixQ[z - x]表示条件 Norm[{x,y}]<1:
0Subscript[, {"NormCone", 3}]{x, y, 1}% /. {x -> .5, y -> .6}0Subscript[, "ExponentialCone"]{x, 1, z}% /. {x -> 1, z -> 3}显示
的边界,其中 x,y 非负,α 位于 0 和 1 之间:
Manipulate[RegionPlot3D[0Subscript[, {"PowerCone", α}]{x, y, z}, {x, 0, 2}, {y, 0, 2}, {z, -2, 2}], {{α, .5}, 0.01, .99}]应用 (1)
VectorLess 是比较许多元素大小的捷径:
v1 = RandomReal[{-1, 0}, 10 ^ 7];
v2 = RandomReal[{1, 0}, 10 ^ 7];AbsoluteTiming[v1v2]AbsoluteTiming[AllTrue[v2 - v1, Positive]]属性和关系 (3)
VectorLess 与向量空间运算兼容:
{a, b} = {{1, 1}, {2, 3}};c = {2, 1};{ab, a + cb + c}Resolve[ForAll[{a, b, c}, (a | b | c)∈Vectors[2, ℝ], aba + cb + c]]α = 1 / 2;{ab, α aα b}Resolve[ForAll[{a, b, α}, (a | b)∈Vectors[2, ℝ]∧α∈PositiveReals, abα aα b], ℝ]{a, b, c} = {{0, 0}, {1, 2}, {2, 3}};aaResolve[ForAll[a, a∈Vectors[2, ℝ], ¬aa], Reals]{ab, Not[ba]}Resolve[ForAll[{a, b}, (a | b)∈Vectors[2, ℝ], ab¬ba], Reals]{ab, bc, ac}Resolve[ForAll[{a, b, c}, (a | b | c)∈Vectors[2, ℝ], ab∧bcac], Reals]{a, b} = {{1, 1}, {2, 0}};{ab, ba}RegionPlot[{{0, 0}{Subscript[x, 1], Subscript[x, 2]}, {Subscript[x, 1], Subscript[x, 2]}{0, 0}}, ...]相关指南
-
▪
- 凸优化 ▪
- 符号向量、矩阵和数组
文本
Wolfram Research (2019),VectorLess,Wolfram 语言函数,https://reference.wolfram.com/language/ref/VectorLess.html.
CMS
Wolfram 语言. 2019. "VectorLess." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/VectorLess.html.
APA
Wolfram 语言. (2019). VectorLess. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/VectorLess.html 年
BibTeX
@misc{reference.wolfram_2026_vectorless, author="Wolfram Research", title="{VectorLess}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/VectorLess.html}", note=[Accessed: 31-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_vectorless, organization={Wolfram Research}, title={VectorLess}, year={2019}, url={https://reference.wolfram.com/language/ref/VectorLess.html}, note=[Accessed: 31-October-2026]}