Skip to content

Commit

Permalink
removed post_expand as it fails for non-expandable args; better loggi…
Browse files Browse the repository at this point in the history
…ng on mpc error
  • Loading branch information
FilippoAiraldi committed Oct 26, 2023
1 parent 0aa6cbb commit cf2e0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mpcrl/agents/lstd_q_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def train_one_episode(
new_action, solV = self.state_value(new_state, False)
if not self._try_store_experience(cost, solQ, solV):
self.on_mpc_failure(
episode, timestep, f"{solQ.status}/{solV.status}", raises
episode, timestep, f"{solQ.status} (Q); {solV.status} (V)", raises
)

# increase counters
Expand Down Expand Up @@ -231,7 +231,7 @@ def _init_sensitivity(
(Lt, d2Qdtheta2),
("x_lam_p",),
("dQ", "d2Q"),
{"post_expand": True, "cse": True},
{"cse": True},
)

# wrap to conveniently return numpy arrays
Expand Down

0 comments on commit cf2e0cc

Please sign in to comment.