there are two model files. one is for optimization and other is for final use after optimization. you have to run the 'Main_ImperialistCompetitveAlgorithm.m file for optimization. you also can change the range of the optimization of the parameters by changing [varmin] and [varmax] matrix in the 'Main_ImperialistCompetitveAlgorithm.m' file.
After you got the optimized value of PI parameters just put these in the 'dc_motor_speed_controller_final' model and see the speed response of the motor.There is a signal builder used as the reference speed time graph of the motor,three signals are there.the second signal is used for optimization purpose.if you want to change the reference signal for optimization then you have to change the costfunction also. the [n] matrix and [input] matrix have to be changed and also index will be changed.see the costfunction for details.the cost function is made of assemble of the total integral error,settling time,rise time,overshoot.priority are given to these parameters.like-rise time and settling time are considered as of higher priority. you can change the costfunction if needed.
you will get error if don't simulate it in just matlab7.0.Even matlab7.5,6.5 will not work,because there is some function like refershdata().this will not work in matlab6,5.but, but the model is made in matlab6.5.there is a difference of model between 6.5 and updated version.In 6.5 power line is considered as signal line,but updated version consider it as separate power line,simpower system of 6.5 will not work in updated version.it will be shown as badlink.
very soon ,the updated model will be submitted.who dont have matlab7.0,have to wait few days,the updated version of the same models will be submitted.