Closed MuXingchui closed 3 months ago
Exactly same issue from my side when solving a trajectory optimization problem in MATLAB interface: `Error using jsondecode JSON syntax error: expected value but found end of text.
Error in OpEnOptimizer/consume (line 63) out = jsondecode(json_response);
Error in PANOC (line 114) out = optimizer.consume([predicted_Xp(:,1:1+Np),x]);`
@alphaville
Hi @MuXingchui, I met with the exactly same problem while running my nmpc simulation. I would like to ask have you solved the problem and how? Thank you.
Hi @MuXingchui, I met with the exactly same problem while running my nmpc simulation. I would like to ask have you solved the problem and how? Thank you.
As @alphaville reply: The MATLAB interface of OpEn has not been supported since v0.5. We have focused on the Python interface instead. You can't impose (hard) constraints in MATLAB, but you can do this in Python where you can use the method with_penalty_constraints
. See this link and this link
Problem description: This problem occurs when I solve NMPC in trajectory tracking, calling the solver. In the Terminal
In the MATLAB, it prompts
Part of the code: In MATLAB
System information:
rustup show
?stable-x86_64-pc-windows-msvc (default) rustc 1.67.1 (d5a82bbd2 2023-02-07)
rustc 1.67.1 (d5a82bbd2 2023-02-07)