is there a list of supported matlab versions that work with GRAMPC.
I am currently using Matlab2018b on a Windows 10, 64 bit system with VS 2015 C++ Compiler.
Running the same setup of my problem files leads irregularly but quite often two a crash of Matlab and other times runs fine and gives the desired results.
Could it be a memory allocation fault?
Unfortunately Matlab doesn't generate a dump file for debugging.
Any advice on this is appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if you build your problem with "startMPC([],2,'debug')" you can attach your Visual Studio to Matlab and it will break at the point where the fault occures.
You should also check that the dimensions you give in the function "ocp_dim" are correct. For example, setting "Nx = 2", but writing to "out[3]" in "ffct" could maybe lead to such errors (The same is true for the constraints).
Regards,
Felix
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should also check that the dimensions you give in the function "ocp_dim" are correct. For example, setting "Nx = 2", but writing to "out[3]" in "ffct" could maybe lead to such errors (The same is true for the constraints).>
Thank you that was my issue, working fine now with Matlab 2018b.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
is there a list of supported matlab versions that work with GRAMPC.
I am currently using Matlab2018b on a Windows 10, 64 bit system with VS 2015 C++ Compiler.
Running the same setup of my problem files leads irregularly but quite often two a crash of Matlab and other times runs fine and gives the desired results.
Could it be a memory allocation fault?
Unfortunately Matlab doesn't generate a dump file for debugging.
Any advice on this is appreciated!
Last edit: hcl734 2019-03-14
Hi,
if you build your problem with "startMPC([],2,'debug')" you can attach your Visual Studio to Matlab and it will break at the point where the fault occures.
You should also check that the dimensions you give in the function "ocp_dim" are correct. For example, setting "Nx = 2", but writing to "out[3]" in "ffct" could maybe lead to such errors (The same is true for the constraints).
Regards,
Felix
You should also check that the dimensions you give in the function "ocp_dim" are correct. For example, setting "Nx = 2", but writing to "out[3]" in "ffct" could maybe lead to such errors (The same is true for the constraints).>
Thank you that was my issue, working fine now with Matlab 2018b.