Feasible Set in LaTeX (\mathcal{X})

X\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.

X={x∈Rn:Ax≤b}\mathcal{X} = \{ x \in \mathbb{R}^n : Ax \leq b \}
\documentclass{article}
\usepackage{amssymb}
\begin{document}
Feasible Set: $\mathcal{X}$

\[ \mathcal{X} = \{ x \in \mathbb{R}^n : Ax \leq b \} \]
\end{document}

Related symbols

All Optimisasi →

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.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian