Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dark mode MODEL.tex #36

Open
yasirroni opened this issue Mar 31, 2023 · 1 comment · May be fixed by #37
Open

Dark mode MODEL.tex #36

yasirroni opened this issue Mar 31, 2023 · 1 comment · May be fixed by #37

Comments

@yasirroni
Copy link

Add dark mode image.

Can you render this code in texit and produce the inverted MODEL_inv.png for dark mode reader?

% \documentclass{article}
\documentclass[convert]{standalone}
\usepackage{amssymb, amsmath, bm}

\usepackage{xcolor}

% \pagecolor[rgb]{0,0,0}
\color[rgb]{1,1,1}

\begin{document}
\begin{equation*}
\begin{aligned}
 %
\mbox{\bf data:} & \nonumber \\ 
& \bm {S^{gl}}_k, \bm {S^{gu}}_k \;\; \forall k \in G \nonumber \\
& \bm c_{2k}, \bm c_{1k}, \bm c_{0k} \;\; \forall k \in G \nonumber \\
& \bm {v^l}_i, \bm {v^u}_i \;\; \forall i \in N \nonumber \\
& \bm S^d_i, \bm Y^s_{i} \;\; \forall i \in N \nonumber \\
& \bm Y_{ij}, \bm {b^c}_{ij}, \bm{T}_{ij} \;\; \forall (i,j) \in E \nonumber \\
& \bm {s^u}_{ij}, \bm {\theta^{\Delta l}}_{ij}, \bm {\theta^{\Delta u}}_{ij} \;\; \forall (i,j) \in E \nonumber \\
& \bm r \nonumber \\
%
\mbox{\bf variables: } & \nonumber \\
& S^g_k \;\; \forall k\in G \nonumber \\
& V_i \;\; \forall i\in N \nonumber \\
& S_{ij} \;\; \forall (i,j) \in E \cup E^R \nonumber \\
%
\mbox{\bf minimize: } & \sum_{k \in G} \bm c_{2k} (\Re(S^g_k))^2 + \bm c_{1k}\Re(S^g_k) + \bm c_{0k} \\
%
\mbox{\bf subject to: } & \nonumber \\
& \angle V_{\bm r} = 0 \\
& \bm {S^{gl}}_k \leq S^g_k \leq \bm {S^{gu}}_k \;\; \forall k \in G  \\
& \bm {v^l}_i \leq |V_i| \leq \bm {v^u}_i \;\; \forall i \in N \\
& \sum_{\substack{k \in G_i}} S^g_k - {\bm S^d_i} - \bm Y^s_{i} |V_i|^2 = \sum_{\substack{(i,j)\in E_i \cup E_i^R}} S_{ij} \;\; \forall i\in N \\ 
& S_{ij} = \left( \bm Y^*_{ij} - \bm i\frac{\bm {b^c}_{ij}}{2} \right) \frac{|V_i|^2}{|\bm{T}_{ij}|^2} - \bm Y^*_{ij} \frac{V_i V^*_j}{\bm{T}_{ij}} \;\; \forall (i,j)\in E \\
& S_{ji} = \left( \bm Y^*_{ij} - \bm i\frac{\bm {b^c}_{ij}}{2} \right) |V_j|^2 - \bm Y^*_{ij} \frac{V^*_i V_j}{\bm{T}^*_{ij}} \;\; \forall (i,j)\in E \\
& |S_{ij}| \leq \bm {s^u}_{ij} \;\; \forall (i,j) \in E \cup E^R \\
& \bm {\theta^{\Delta l}}_{ij} \leq \angle (V_i V^*_j) \leq \bm {\theta^{\Delta u}}_{ij} \;\; \forall (i,j) \in E
%
\end{aligned}
\end{equation*}

\end{document}

Thanks

@yasirroni yasirroni linked a pull request Mar 31, 2023 that will close this issue
@ccoffrin
Copy link
Member

ccoffrin commented Apr 1, 2023

I am considering this update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants