Menu

2 GRAMPCs in one Simulink file

Zejiang
2019-07-30
2019-08-12
  • Zejiang

    Zejiang - 2019-07-30

    Hello everyone,
    I am trying to implemnt two MPC controllers in one Simulink file with one for speed control and another for steering control. The question is that these two MPCs have different Inputs/Outputs. Therefore, they can not share the same grampc_run_sfct.c file. In this way, how can we compile two GRAMPCs ? I mean they do not need to built 'simultaneously', just to make the two groups of MEX files will not intervene with each other.
    Thanks.

    Sincerely,
    ZJ

     
  • Andreas Völz

    Andreas Völz - 2019-08-12

    Hello Zejiang,

    have you already tried to rename the files using some kind of prefix/suffix? A good start could be the example Reactor_CSTR with startMHE.m, where MPC and MHE using GRAMPC are running "simulatenously". A similar approach should also work for grampc_run_sfct.

    Regards,
    Andreas

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.