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.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث