Feasible Set in LaTeX (\mathcal{X})
- LaTeX command
\mathcal{X}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Calligraphic X, commonly used to name the feasible set or domain over which an optimization variable ranges.
Script capitals name sets in optimization and learning: x \in \mathcal{X} for the feasible region, \mathcal{Y} for labels, \mathcal{D} for a data distribution, \mathcal{H} for a hypothesis class. \mathcal supports only uppercase letters; lowercase arguments give unpredictable glyphs. If you want a more ornate script, \mathscr gives a different style, while \mathbb{X} gives blackboard bold, more often used for number systems. Projection onto the set is written \Pi_{\mathcal{X}}(y). Define the set explicitly once, e.g. \mathcal{X} = \{x : g_i(x) \leq 0\}.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Feasible Set: $\mathcal{X}$
\[ \mathcal{X} = \{ x \in \mathbb{R}^n : Ax \leq b \} \]
\end{document}Related symbols
- Function
f(x) - Optimal Value
x^* - Mu
\mu - Hessian
\nabla^2 f(x) - KKT Conditions
\nabla f + \lambda \nabla g = 0 - Gradient
\nabla f(x)
Frequently asked questions
- How do I write Feasible Set in LaTeX?
- Type \mathcal{X} in math mode, for example $\mathcal{X} = \{ x \in \mathbb{R}^n : Ax \leq b \}$. It works in plain LaTeX without loading any package.
- Which package do I need for \mathcal{X}?
- None. \mathcal{X} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \mathcal{X} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\mathcal{X}$ in running text.
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기