From b540478cd3a546be47e7a06af08777d8da948a0f Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@math.fu-berlin.de> Date: Mon, 3 Nov 2014 16:57:47 +0100 Subject: [PATCH] Accidentally removed a line when I was merging the classes... --- dune/solvers/solvers/quadraticipopt.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dune/solvers/solvers/quadraticipopt.hh b/dune/solvers/solvers/quadraticipopt.hh index 7649012b..f51e3915 100644 --- a/dune/solvers/solvers/quadraticipopt.hh +++ b/dune/solvers/solvers/quadraticipopt.hh @@ -156,6 +156,9 @@ bool QuadraticIPOptProblem<MatrixType,VectorType>:: get_nlp_info(Ipopt::Index& n, Ipopt::Index& m, Ipopt::Index& nnz_jac_g, Ipopt::Index& nnz_h_lag, Ipopt::TNLP::IndexStyleEnum& index_style) { + // use the C style indexing (0-based) + index_style = Ipopt::TNLP::C_STYLE; + // Number of variables n = x_->dim(); -- GitLab