Skip to content

Commit

Permalink
Minor change controller estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix-Mac committed Oct 14, 2022
1 parent bc7d88a commit 7913352
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions do_mpc/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,8 @@ def _create_nlp(self):
'expand': False,
'ipopt.linear_solver': 'mumps',
}.update(self.nlpsol_opts)
nlp = {'x': vertcat(self._opt_x), 'f': self._nlp_obj, 'g': self._nlp_cons, 'p': vertcat(self._opt_p)}
self.S = nlpsol('S', 'ipopt', nlp, self.nlpsol_opts)
self.nlp = {'x': vertcat(self._opt_x), 'f': self._nlp_obj, 'g': self._nlp_cons, 'p': vertcat(self._opt_p)}
self.S = nlpsol('S', 'ipopt', self.nlp, self.nlpsol_opts)


# Create function to caculate all auxiliary expressions:
Expand Down
4 changes: 2 additions & 2 deletions do_mpc/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1396,8 +1396,8 @@ def _create_nlp(self):
'expand': False,
'ipopt.linear_solver': 'mumps',
}.update(self.nlpsol_opts)
nlp = {'x': vertcat(self._opt_x), 'f': self._nlp_obj, 'g': self._nlp_cons, 'p': vertcat(self._opt_p)}
self.S = nlpsol('S', 'ipopt', nlp, self.nlpsol_opts)
self.nlp = {'x': vertcat(self._opt_x), 'f': self._nlp_obj, 'g': self._nlp_cons, 'p': vertcat(self._opt_p)}
self.S = nlpsol('S', 'ipopt', self.nlp, self.nlpsol_opts)



Expand Down

0 comments on commit 7913352

Please sign in to comment.