Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
LiveLink, using a variable and for loop to change a parameter set
Posted 10.05.2019, 16:25 GMT-4 General, Parameters, Variables, & Functions, Results & Visualization, Studies & Solvers 2 Replies
Please login with a confirmed email address before reporting spam
Hi all,
I would like to be able to change one parameter of my model inside of a for loop with LiveLink and then run the model. Does anyone know how to do this? My code looks something like this:
for CED=[1.0:0.01:3.0] model.param.set('C_ED', 'CED[mm]'); model.param.set('C_EP', '1[mm]'); model.param.set('C_EW', '0.5[mm]'); model.param.set('d_ci', '0.5[mm]'); model.param.set('d_nb', '0.4[mm]'); model.sol('sol1').runAll [b1,b2,b3,b4]=graphingfun(model); end
Thanks in advance!