%%% Do not change from BEGIN to END
%%% BEGIN
\documentclass[a4paper,10pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish,english]{babel}
\usepackage{graphicx}
\usepackage[a4paper,margin=2.7cm]{geometry}

%\usepackage[math]{kurier}
\usepackage[sc]{mathpazo} % consider options: osf, sc

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{enumerate}
\usepackage{array}

\usepackage[linesnumbered,ruled,vlined]{algorithm2e}


\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,matrix}


\setlength{\parindent}{0pt}
\setlength{\parskip}{2ex} 


\renewcommand{\vec}[1]{\ensuremath {\mathbf #1}}

%%% Settings for the Instructor
\newcommand{\courseid}{DM841}
\newcommand{\coursename}{Discrete Optimization}
\newcommand{\term}{Autumn 2023}
\newcommand{\dept}{Department of Mathematics and Computer Science}

%%% Settings for the Student
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\author{WRITE-HERE-YOUR-FULLNAME}
\newcommand{\assnr}{WRITE-ASSIGNMENT-NR}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newcommand{\cprnr}{WRITE-HERE-YOUR-CPR-NR}
\makeatletter
\let\runauthor\@author
\let\runtitle\@title
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\usepackage{lastpage}
\usepackage{listings}
\lstset{language=Python,
  emph={var, int, float, bool, string, enum, array, set, include, satisfy, maximize, minimize, solve, output},
emphstyle=\color{blue}, %\bfseries,
  %stringstyle=\ttfamily,
commentstyle=\color{gray}\sffamily\emph,
morecomment=[l]{\%},
  basicstyle=\ttfamily\lst@ifdisplaystyle\footnotesize\fi,%\fontfamily{pzc}\selectfont,%
  stringstyle=\ttfamily,
  commentstyle=\ttfamily,
  showstringspaces=false,
  frame=lines, 
  breaklines=true, tabsize=2,
  extendedchars=true,
  inputencoding=utf8,
   morekeywords={of, constraint, solve, output, include, min, max, sum, product,
    forall, exists, xorall, iffall, var-name, anon_enum}
}
%\lstavoidwhitepre

\usepackage{fancyhdr}

\pagestyle{fancy}
%\renewcommand{\chaptermark}[1]{ \markboth{#1}{} }
\renewcommand{\sectionmark}[1]{\markright{#1}}
\fancyhf{}
\fancyhead[LE,RO]{\nouppercase{\rightmark}}
\fancyhead[RE,LO]{\runauthor}
%\chead{}
%\rhead{Ex.~nr.~\runauthor}
\cfoot{Page \thepage\ of \pageref{LastPage}}

\fancypagestyle{plain}{
\lhead{\dept\\
University of Southern Denmark, Odense}
\chead{}
\rhead{\today\\
\runauthor}
\lfoot{}
\rfoot{}
%\renewcommand{\headrulewidth}{0pt}
}


\title{\begin{flushleft}
\vspace{-4ex}
\courseid~-- \coursename \\[0.2cm]
{\Large Answers to Obligatory Assignment \assnr, \term \\[3ex]
\hrule}
\end{flushleft}
}


\date{}

%%% END


\begin{document}
\maketitle





\end{document}
          



