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 最適化 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得