Other objects, features and efficacies can be more readily known when the following description made via the preferred embodiment is read with reference to the accompanying drawings.
Referring to
In this embodiment, the parameter locating program 12 is performed based on a genetic algorithm with a plurality of search number of times of long, medium and short distances track searching, each corresponding to an absolute address, performed, in which a total search distance for the track searching is taken as a reference. By using the reference, the optimal controller parameters for the optical drive can be located based on a direction search scheme. Although the genetic algorithm is exemplified, other algorithms may also be utilized in locating the optimal controller parameters.
Specifically, each control parameter is considered as a gene (character) and all the genes are combined as a chromosome (string). The parameter locating program 12 is used to generate the genes in the chromosome randomly and I sets of such chromosome are thus generated. In the coase track seeking, it is most important to reduce the track search time as possible as the system can. In this embodiment, the optical drive 2 makes n times of track searching for long, medium and short distance tracks based on the genes in each of the chromosomes. The search time for each of the tracks being searched is summed to obtain a total search time according to Eq. 1 and an overall performance indicator is computed based on Eq. 1 as Eq. 2.
Wherein ti is the search time for an i-th number of times of the track searching, n is a designated search number of times, T—
Accordingly, the parameter locating program 12 rates the chromosome according to the overall performance indicator P. Then, the parameter search program 12 executes the track searching operations in the optical drive according to the genes in the chromosomes. According to the I sets of chromosomes, I sets of search time are obtained. The I sets of chromosomes are rated according to their search time. The chromosomes rated as the best K (K<I) ones among the I chromosomes are selected to be chromosomes for a parental generation. After a mating, mutation and extinction processes, the I chromosomes for the next generation is generated. Based on the net performance index P. In this embodiment, the higher a chromosome is rated, it has a higher mating rate in the mating process conducted. The mating process is performed by a multi-points method by using Gray codes. A mutation rate for each of the genes is set as 0.01. To avoid the process for the optimal chromosomes from erroneously converging, a condition of convergence is given as the following equation:
T
K
−T
1
≦T
set Eq. 3
wherein TK is the total search time obtained by the rated Kth chromosome for each generation, T1 is the optimal total search time for each generation, and Tset is a designated convergence time. In this embodiment, Tset is set as 0.3 seconds.
If the condition of convergence is met, the extinction process is launched. The best K chromosomes is eliminated, and the rest of chromosomes are used to randomly generate the I chromosomes of the next generation. After several generations of evolution, the total search time for the long, medium and fine track seeking becomes shorter and shorter. When the total search time meets a predetermined result (termed as a stop condition), the evolution and thus the above processes stop. And the best genes in the late several generations are taken as the optimal controller parameters. In this embodiment, the predetermined number of the generation involved in the evolution process is set as 50. The best chromosomes in average in the late five generations are taken as the optimal controller parameters. Although the conditions for the mating and mutation processes and the stop condition are limited for illustration, other conditions generally used in the gene algorithm may be utilized such as the single-point mating method and homogeneous mating method. Further, the stop condition may be otherwise set as either of the overall performance indicators P of the chromosomes reaches a predetermined level without being limited by the above embodiment.
The drive program 13 is used to drive the optical drive 2 to operate normally and thus contains control programs associated with the track searching. To facilitate the reference for the optical drive 2 to be obtained, the absolute addresses involved in the n times of long, medium and fine track seeking are provided in the drive program 13 and the search time T for the track searching associated with the absolute addresses is sent to a related program in the computer 1. When the chromosomes are received by the optical drive, the n times track searching for a generation is performed and the total search time T-time is summed and sent to the computer 1.
To avoid the total search time T-time obtained from the single round of n times track searching operation from being not correct enough, this round of track searching is repeated for y (y>1) times and the y total search time T—
To test the track searching state with respect to the chromosome, a first transmission line 141 in compliance with the integrated drive interface (IDE) standard is provided to be electrically connected to a parallel port of the optical drive 2 and the computer 1. A second transmission line 142 in compliance with the RS-232 standard is provided to be electrically connected to a corresponding jack of the optical drive 2 and the computer 1. Since the voltage level used for the computer 1 is not equal to that for the optical drive 2, a voltage conversion circuit 143 is further provided to connect in series with the second transmission line 142, so that the voltage level between the computer 1 and the optical drive 2 can be consistent.
The optical drive 2 has a memory 21 for storing a program associated with a controller, an optical pick-up head (now shown), a track searching coil (not shown), a track searching motor (not shown), a controller chip (not shown), a parallel port, a RS-232 jack, among others. When the transmission interface is electrically connected between the computer 1 and the optical drive 2, the drive program 13 is written into the memory 21 of the optical drive 2 through the first transmission line 141 so that the track searching process can be performed. Then, the chromosomes of a specific generation are transmitted to the optical drive 2 through the second transmission line 142 and the optical drive 2 performs y rounds of n times track searching operations according thereto with respect to each of the chromosomes received by the optical drive 2. Then, the total search time T—
The method for automatically locating the optimal controller parameters according to the present invention will be described below, which is performed on the above hardware system. Before the method is executed, the drive program 13 is loaded into the memory 21 of the optical drive 2 through the first transmission line 141 so that the optical drive 2 can work normally. Also assumed is that the computer 1 and the optical drive 2 have been powered up and some systems and programs associated with the track searching process have been loaded.
The method will be described with the control system for coase track seeking used in an optical drive, disclosed in the R.O.C. Patent No. 479,245, as an example for the illustration.
In this exemplary control system, the optimal controller parameters comprise two controller parameters Rwenterr and Riperr of the speed controller 33, two controller parameters Rc—temp and Rc—iperr of the switching time controller 31 and a control parameter Rwsktrk of the parameter adjuster 32. Each of these controller parameters has a search range of 0 to 32767.
At first, the I chromosomes of the first generation is generated in step 411. Specifically, the parameter locating program 12 generates the I chromosomes for the first generation, each having five genes (five controller parameters) therein. In this example, the value I is set as 30 and the number of generation is set as 50. The original I chromosomes are generated randomly. In step 411, the “i” of the i-th chromosome is set as 1 and the “G” of the G-th generation is set as “1”. Thereafter, the parameter locating program 12 converses the genes in the chromosomes into the controller parameters in the form required by the optical drive 2. The controller parameters are transmitted to the optical drive 2 through a human machine interface program 11 by means of the second transmission line 142. As such, the optical drive 2 is driven to search the track therein. In this embodiment, one of such sets of chromosome is sent to the optical drive 2 at a time and the next one is sent after the total search time T-time for the y times track searching is received. In addition, the graphic user interface 15 is shown on a display (not shown) for the computer 1. As such, an engineer or operator may real time realize what has happened with the track searching process since when that happens an visual or audio message may be issued so that the engineer or operator can make a response thereto.
In addition, once the chromosome is received, the optical drive 2 begins to initialize a servo, set a primary motor speed, time for the track searching process and perform the n time track searching process for y rounds. Then, the total search time T-time of the y rounds is sent to the computer 1 and shut off the servo. In this embodiment, 649 times of track searching operations are performed (n=649) in a single round of track searching with respect to the single set of chromosomes and 5 rounds of track searching (y=5) is performed for the single set of chromosomes.
In step 413, the total track search time T—
Next, the parameter locating program 12 determines whether the received total search time T—
If yes in the step 414, it means that all the I sets of chromosomes have finished their track searching operations and the process will go to a step 416. In this embodiment, the chromosomes in the same generation are sent to the optical drive 2 one by one, i.e. a next chromosome is only sent to the optical drive after the total search time of the current chromosome is obtained. In fact, the chromosomes in the same generation may also be sent together to the optical drive 2 and thus the total search time of all the chromosomes in the same generation is sent back to the computer 1 together.
In the step 416, the parameter locating program 12 rates the chromosomes of the same generation as the overall performance indicator and orders the chromosomes according to the overall performance indicator, i.e. the total search time T—
Next, whether the current generation for the chromosomes has reached the predetermined generation, i.e. the fifty generation (G=50) in this embodiment, in step 417. If no in the step 417, the process goes to step 418, where the best K chromosomes as rated in step 417 are selected to be served as seeds for evolution of a next generation. Otherwise, the current generation is determined as the predetermined generation and the process goes to a step 423, where the genes have the best ratings in average in the late several generations (e.g. 5 generations) are selected, which will be explained in the following context. In this embodiment, K is set as 10.
In step 418, whether the best K chromosomes as rated (the best 10 in this embodiment) are convergent is determined according to Equation 3. Namely, whether a difference between the total search time T—
If no in the step 418, the process goes to a step 420, where the best K chromosomes are selected to generate the I chromosomes of the next generation through the mating and mutation processes. When the step 420 is finished, the process goes to a step 421.
In step 421, the generation G with the best K chromosomes rated is replaced with a next generation G (G=G+1) and the process goes to a step 422. Thus, the steps 312 to 415 are repeated until the total search time T—
The steps 412 to 422 are repeated toward the predetermined generation as shown in
When the system for locating the optimal controller parameters for an optical drive of the invention is implemented in the currently available optical drive by using the widely used test software DVD-ROM Speed99 for the full stroke seek, ⅓ stroke seek and random seek operations, it may be demonstrated that the time required for the track searching operation is effectively shortened and thus the performance of the optical drive can be promoted.
In conclusion, the system for locating the optimal controller parameters for an optical drive of the invention locates the optimal controller parameters by enabling the human machine interface program 11 and the parameter locating program 12 in the computer to perform a real track searching operation. The parameter locating program 12 conducts the real track searching operation based on the gene rule and with a reference used therein for the evolution of the chromosomes so as to effectively find the optimal controller parameters and form an efficient track searching controller, in which the total search time of each of the chromosomes obtained in the long, medium and fine track seeking operations is taken as the reference.
Many changes and modifications in the above described embodiment of the invention can, of course, be carried out without departing from the scope thereof. For example, although the system for locating the optimal controller parameters is described based on the fuzzy theory-based coase track seeking controller, the controller parameters of the speed curve track searching control and the fine track seeking control may also be contemplated in this invention. Accordingly, to promote the progress in science and the useful arts, the invention is disclosed and is intended to be limited only by the scope of the appended claims.