Can any help me remove the indentation of the text after defining an optimization equation using the optidef package?



The optimization problem is defined as
    % Optimization variable
    % Objective function
    {\frac{\left\lVert Z_{\text{FRAC}}(R,L_{\beta},\beta,\omega) - Z_{\text{FEA}}(\omega)\right\rVert^{2}}{\left\lVert Z_{\text{FRAC}}(R,L_{\beta},\beta,\omega) + Z_{\text{FEA}}(\omega)\right\rVert^{2}} \label{eq:objectiveFunction}}
    % Optimization problem label
    % Optimization results
    % Constraints
    \addConstraint{R}{> 0, \quad R &&\in \mathbb{R}}
    \addConstraint{L_{\beta}}{> 0, \quad L_{\beta} &&\in \mathbb{R}}
    \addConstraint{0 \leq \beta}{\leq 1, \quad \beta &&\in \mathbb{R} \label{eq:betaConstraint}}
where $Z_{\text{FRAC}}(R,L_{\beta},\beta,\omega)$ is the impedance calculated from the fractional model  and $Z_{\text{FEA}}(\omega)$ is the impedance determined by FEA.



  • Did you try adding \noindent? – Bernard Apr 15 '19 at 8:56
  • @Bernard it does not help. – Alex Apr 15 '19 at 9:00
  • looks like a bug in the package. It's probably best to contact the package authors and ask them to take a look. – thymaro Apr 15 '19 at 10:48
  • 1
    @thymaro I've now opened an issue on their GitHub: github.com/jeslago/optidef/issues/29 – Alex Apr 15 '19 at 18:13

The issue is fixed in the latest version of optidef on GitHub. Just download optidef.sty and add it to your working directory.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.