Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SINDy_MPC for MPC_F8 does not work. #5

Open
jdawg86 opened this issue May 25, 2022 · 1 comment
Open

SINDy_MPC for MPC_F8 does not work. #5

jdawg86 opened this issue May 25, 2022 · 1 comment

Comments

@jdawg86
Copy link

jdawg86 commented May 25, 2022

When I run MPC_F8 I get this error. Seems like there are some array-wise issues with the code.

`Warning: Directory already exists.

In MPC_F8 (line 9)
Warning: Directory already exists.
In MPC_F8 (line 10)
Simulation started. It might take a while...
Unable to perform assignment because the left and right sides have a different number of elements.

Error in ConstraintFCN (line 39)
cy(2*ct-1) = -xk1(1)+zMin;

Error in MPC_F8>@(u)ConstraintFCN(u,uHistory(:,ct),xhat,Ts,N,LBo,UBo,LBdu,UBdu,[]) (line 52)
CONSFUN = @(u) ConstraintFCN(u,uHistory(:,ct),xhat,Ts,N,LBo,UBo,LBdu,UBdu,[]);

Error in fmincon (line 655)
[ctmp,ceqtmp] = feval(confcn{3},X,varargin{:});

Error in MPC_F8 (line 53)
uopt = fmincon(COSTFUN,uopt,[],[],[],[],LB,UB,CONSFUN,options);

Caused by:
Failure in initial nonlinear constraint function evaluation. FMINCON cannot continue.`

@orte94oros
Copy link

Were you able to correct the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants