If there is preventive maintenance action, then the next corrective maintenance should be increased but both of them happen when they reach the respective time. I used generator to give the correction and preventive time. And the preventive maintenance time interval is optimised using GA tool based on the cost. Hence in the interval control, I made the other generator inactive and it will be active in the duration control. But in that case, the correction or prevention happens when the generator is active instead of the time given in the interval.
Hence my question is I use two generators to control the singleproc. If one generator works i.e if that generators interval control works, then the other generator should reset and start counting from beginning. What Should I do?
I have attached my model. So If somebody can help please let me know how to solve
the generators work independent from each other. You have to connect them in your controls.
And they only work if you activate them after setting / changing the parameters. So, in your init, before setting the data insert "c.active := FALSE", after the data settings "c.active := TRUE". This starts the generator. Same with p.