CN108108152A - A kind of real random number generator automatic optimization method - Google Patents

A kind of real random number generator automatic optimization method Download PDF

Info

Publication number
CN108108152A
CN108108152A CN201611049403.0A CN201611049403A CN108108152A CN 108108152 A CN108108152 A CN 108108152A CN 201611049403 A CN201611049403 A CN 201611049403A CN 108108152 A CN108108152 A CN 108108152A
Authority
CN
China
Prior art keywords
random number
chromosome
individual
number generator
automatic optimization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611049403.0A
Other languages
Chinese (zh)
Other versions
CN108108152B (en
Inventor
苏琳琳
陈冈
康博
岳超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Tongfang Microelectronics Co Ltd
Original Assignee
Beijing Tongfang Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Tongfang Microelectronics Co Ltd filed Critical Beijing Tongfang Microelectronics Co Ltd
Priority to CN201611049403.0A priority Critical patent/CN108108152B/en
Publication of CN108108152A publication Critical patent/CN108108152A/en
Application granted granted Critical
Publication of CN108108152B publication Critical patent/CN108108152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/004Artificial life, i.e. computing arrangements simulating life
    • G06N3/006Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/123DNA computing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Biophysics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Biomedical Technology (AREA)
  • Computational Linguistics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computing Systems (AREA)
  • Artificial Intelligence (AREA)
  • Molecular Biology (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Genetics & Genomics (AREA)
  • Measuring Or Testing Involving Enzymes Or Micro-Organisms (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of real random number generator automatic optimization methods.The real random number generator automatic optimization method is due to can be according to the difference of different process, choose the parameter of real random number generator, during process shifts, engineer the circuit of true random number need not be calculated and designed again, accelerate the cycle of product design and production.Meanwhile for the special screne of randomizer, population definition is redescribed, the improvement to genetic algorithm, crossover process is the intersection of chromosome, and non-replaceable gene;Also, the mutation process of chromosome is divided into two steps, adds the variation situation of chromosome quantitative, moreover, this automatic optimization method improves the convergence rate of genetic algorithm, so as to achieve the effect that real random number generator area and power consumption optimum.

Description

A kind of real random number generator automatic optimization method
Technical field
The present invention relates to real random number generator technical field more particularly to real random number generator automatic optimization methods.
Background technology
Real random number generator (TRNG) is to generate random sequence using the randomness of the physical phenomenon of nature.Such as Shown in Fig. 1, for existing randomizer schematic diagram, wherein Fig. 1(a), it is a kind of based on ring oscillator realization method Randomizer, the randomness of this ring oscillator are decided by the random of the thermal noise of phase inverter on loop oscillator first Property, next is decided by the number of the loop of ring oscillator, the number of phase inverter on loop.Therefore when same realization method Randomizer when replacing integrated circuit design process, since the thermal noise performance of device is different, causes true random number to be sent out The randomness of raw device is different.Recurrent problem is that real random number generator only replaces device, is changed without the feelings of assembled scheme Under condition, in the product under A techniques, real random number generator can provide more reliable random number, but when being transplanted to B techniques, Requiring for randomness cannot be met.The deviation of randomness caused by the deviation between different process was not being transplanted Considered in journey.In order to increase the robustness of true random number, it will usually which selection is continuously increased loop quantity and changes on loop The mode of the quantity of phase inverter improves randomness, such as Fig. 1(b)Shown, still, although this mode improves randomizer Entropy(That is randomness), but cause the waste of larger area and power consumption.Therefore, it is necessary to a kind of methods can be given at not With under process condition, any combination mode of real random number generator it is good can either to reach randomness, additionally it is possible to accomplish area With the designing scheme of power consumption optimum.
The content of the invention
It is insufficient present in for the above-mentioned prior art, it is an object of the present invention to provide a kind of real random number generator certainly Dynamic optimization method, this method automatically according to the difference of different process, can choose the parameter of real random number generator, provide satisfaction It is required that optimal case.
In order to reach above-mentioned technical purpose, the technical solution adopted in the present invention is:
A kind of real random number generator automatic optimization method, the automatic optimization method are as follows:
The first step:Initialization of population, content include:(1)The number of total group;(2)The maximin of chromosome in population;(3) The maximin of genic value;(4)Iterations maximum;(5)Crossing-over rate and aberration rate;(6)Random number is initially in total group Primary individual;
Second step:Generation heredity is carried out, therefore iterations adds 1;
3rd step:It calculates in this generation, individual fitness function;
4th step:According to the value of fitness function, made choice using roulette algorithm;
5th step:Intersected using the individual selected;
6th step:The variation of chromosome quantitative gene numerical value is carried out using the individual after selection and intersection;
7th step:Individual after being made a variation using the 6th step carries out the variation of chromosome quantitative;
8th step:Judge whether there are 10 round optimal values not change;If optimal value 10 is taken turns unchanged, algorithm terminates; Otherwise then carry out the 8th step;
9th step:Judge whether the round is more than or equal to maximum iteration, if it is, algorithm terminates;If not then sheet Terminate for genetic algorithm, return to second step.
Preferably, in the real random number generator automatic optimization method, the population is defined as:Assuming that population quantity is M, each individual have n chromosome, and each chromosome is there are one gene, and numerical value q, then each individual is expressed as in total group:Xm =[q1, q2, q3 ... qn].
Parameter of the present invention since real random number generator according to the difference of different process, can be chosen, in process shifts In the process, engineer the circuit of true random number need not be calculated and designed again, accelerate the cycle of product design and production. Meanwhile for the special screne of randomizer, population definition, the improvement to genetic algorithm are redescribed, crossover process is The intersection of chromosome, and non-replaceable gene;The mutation process of chromosome is divided into two steps, adds the variation feelings of chromosome quantitative Condition, moreover, this automatic optimization method improves the convergence rate of genetic algorithm, so as to reach real random number generator area and The effect of power consumption optimum.
The present invention will be further described with reference to the accompanying drawings and detailed description.
Description of the drawings
Fig. 1 is existing randomizer schematic diagram.
Fig. 2 is the real random number generator automatic optimization method flow chart that the present invention is embodied.
Specific embodiment
Referring to Fig. 2, the real random number generator automatic optimization method flow chart being embodied for the present invention.Wherein, population It is defined as:Assuming that population quantity is m, each individual has n chromosome, there are one each chromosomes gene, numerical value q, then always Each individual is expressed as in group:
Xm=[q1, q2, q3 ... qn].
(1)Fitness function:Two optimization aims include randomness and power consumption.
The function of randomness is R (xm), and different oscillator loop models has different randomness functions, but should ensure that Randomness is bigger, and the value of random function is bigger;The function of randomness is represented in the technical program using entropy function.
Prob ue :The probability that the output of random number oscillator is 1.
(2)Power consumption function is P (xm), and the device in different process storehouse is different, and the calculation of power consumption function is also different, But it should ensure that power consumption is bigger, the value of power consumption function is bigger.
(3)Fitness function:Fitness function is higher, and individual fitness is better, according to the situation of this programme, it should be Randomness is better, and the value of the smaller individual adaptation degree function of power consumption is bigger.Therefore fitness function is:
f(xm) = z R(xm)/P(xm)
Wherein, z is turning towards parameter so that the maximum of f (xm) is 1.
(4)Selection:There are many method for selecting individual, roulette etc., here not specific certain scheme of finger;
The step of wheel disc bet method:
A:Calculate the summation of the fitness of all individuals in group
B:The sum of the probability that each individual is genetic in next-generation group, whole probability values is calculated as 1;
C:Calculate the cumulative probability of each individual
D:The random number r between one 0 to 1 is generated, if r<Q [1] then selects individual 1, otherwise, selects individual k so that:q[k- 1]<R≤q [k] is set up.
(5)Intersect:The mode chiasmatypy that the two former generation's chromosome single-points intersected intersect.Generate random number R1, r2, r3 work as r1<P (selection rate), above-mentioned(4)In the individual of selection, intersection, Cross reaction body are proceeded by from r2 positions Length is r3;
Such as:The ith and jth individual in the n-th generation is selected for exchanging, and the ith and jth individual for obtaining for the (n+1)th generation is as follows It is described:
Xn,i=[q1,q2,q3…qr2…qr2+r3…qn] Xn+1,i= [q1,q2,q3…pr2…pr2+r3…qn]
Xn,j=[p1,p2,p3…pr2…pr2+r3…pn] Xn+1,j=[p1,p2,p3…qr2…qr2+r3…pn]
(6)Variation:Due to the particularity of scheme, the variation of the program is divided into two steps:
A:The mode to make a variation into offspring's chromosome single-point of row variation changes certain chromosome.Random number r1, r2 are generated, works as r1<q (aberration rate), in the individual after the 5th step is intersected, the r2 positions in individual carry out chromosomal variation;For example, the n-th generation I-th of individual is selected for variation A, and i-th of body for obtaining for the (n+1)th generation is as described below:
Xn,i=[q1,q2,q3…qr2…qn] Xn+1,i=[q1,q2,q3…mr2…qn]
B:Quantity into offspring's chromosome of row variation increases.Generate random number r1, r2;Work as r1<Q (aberration rate), the variation Body increases a chromosome, and the value for increasing chromogene is r1>1-q (aberration rate), variation individual reduce by a chromosome, The value of the gene of chromosome is 0, increases chromosome.For example, i-th of individual in the n-th generation is selected for variation B, increase by one Chromosome, i-th of body for obtaining for the (n+1)th generation are as described below:
Xn,i=[q1,q2,q3……qn] Xn+1,i=[q1,q2,q3……qn,qn+1,]
I-th of individual in the n-th generation is selected for variation B, reduces by a chromosome, obtains the following institute of i-th of body in the (n+1)th generation It states:
Xn,i=[q1,q2,q3……qn] Xn+1,i=[q1,q2,q3……qn-1,0]。
From the above, it can be seen that due to the improvement to genetic algorithm, crossover process is the intersection of chromosome, and non-replaceable base Cause so that the mutation process of chromosome is divided into two steps, adds the variation situation of chromosome quantitative, significantly improves genetic algorithm Convergence rate, so as to achieve the effect that real random number generator area and power consumption optimum.
The present invention is not limited to embodiment discussed above, more than the description of specific embodiment is intended to retouch It states and illustrates technical solution of the present invention.The obvious conversion or replacement enlightened based on the present invention should also be as being considered Fall into protection scope of the present invention;Above specific embodiment is used for disclosing the optimal implementation of the present invention, so that this The those of ordinary skill in field can apply numerous embodiments of the invention and a variety of alternatives to reach the present invention's Purpose.

Claims (2)

1. a kind of real random number generator automatic optimization method, which is characterized in that the specific steps of the automatic optimization method are such as Under:
The first step:Initialization of population, content include:(1)The number of total group;(2)The maximin of chromosome in population;(3) The maximin of genic value;(4)Iterations maximum;(5)Crossing-over rate and aberration rate;(6)Random number is initially in total group Primary individual;
Second step:Generation heredity is carried out, therefore iterations adds 1;
3rd step:It calculates in this generation, individual fitness function;
4th step:According to the value of fitness function, made choice using roulette algorithm;
5th step:Intersected using the individual selected;
6th step:The variation of chromosome quantitative gene numerical value is carried out using the individual after selection and intersection;
7th step:Individual after being made a variation using the 6th step carries out the variation of chromosome quantitative;
8th step:Judge whether there are 10 round optimal values not change;If optimal value 10 is taken turns unchanged, algorithm terminates; Otherwise then carry out the 8th step;
9th step:Judge whether the round is more than or equal to maximum iteration, if it is, algorithm terminates;If not then sheet Terminate for genetic algorithm, return to second step.
2. real random number generator automatic optimization method as described in claim 1, which is characterized in that the population is defined as: Assuming that population quantity is m, each individual has n chromosome, and each chromosome is there are one gene, numerical value q, then in total group each Individual is expressed as:Xm=[q1, q2, q3 ... qn].
CN201611049403.0A 2016-11-25 2016-11-25 Automatic optimization method for true random number generator Active CN108108152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611049403.0A CN108108152B (en) 2016-11-25 2016-11-25 Automatic optimization method for true random number generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611049403.0A CN108108152B (en) 2016-11-25 2016-11-25 Automatic optimization method for true random number generator

Publications (2)

Publication Number Publication Date
CN108108152A true CN108108152A (en) 2018-06-01
CN108108152B CN108108152B (en) 2023-08-18

Family

ID=62203896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611049403.0A Active CN108108152B (en) 2016-11-25 2016-11-25 Automatic optimization method for true random number generator

Country Status (1)

Country Link
CN (1) CN108108152B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427541A (en) * 2020-03-30 2020-07-17 太原理工大学 Machine learning-based random number online detection system and method
CN111456958A (en) * 2020-01-19 2020-07-28 追觅科技(上海)有限公司 Fan rotating speed control method and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030145289A1 (en) * 2002-01-25 2003-07-31 Anderson David M. Method and system for reproduction in a genetic optimization process
CN104135363A (en) * 2014-07-28 2014-11-05 河海大学 Method of generating pseudo random number based on regular cellular automation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030145289A1 (en) * 2002-01-25 2003-07-31 Anderson David M. Method and system for reproduction in a genetic optimization process
CN104135363A (en) * 2014-07-28 2014-11-05 河海大学 Method of generating pseudo random number based on regular cellular automation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
伍铁斌等: "基于混沌遗传算法的PID参数优化", 《计算机仿真》 *
文明瑶: "基于遗传算法的TSP优化问题", 《电脑与信息技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111456958A (en) * 2020-01-19 2020-07-28 追觅科技(上海)有限公司 Fan rotating speed control method and computer readable storage medium
CN111427541A (en) * 2020-03-30 2020-07-17 太原理工大学 Machine learning-based random number online detection system and method
CN111427541B (en) * 2020-03-30 2022-03-04 太原理工大学 Machine learning-based random number online detection system and method

Also Published As

Publication number Publication date
CN108108152B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
Yu et al. A chance constrained transmission network expansion planning method with consideration of load and wind farm uncertainties
Fang et al. A hybrid of real coded genetic algorithm and artificial fish swarm algorithm for short-term optimal hydrothermal scheduling
CN109886473B (en) Watershed wind-solar water system multi-objective optimization scheduling method considering downstream ecology
Subbaraj et al. Enhancement of self-adaptive real-coded genetic algorithm using Taguchi method for economic dispatch problem
CN106651628B (en) Regional cooling, heating and power comprehensive energy optimal allocation method and device based on graph theory
CN106355292B (en) Cascade reservoir optimal scheduling method and system based on quantum particle swarm optimization
Castelli et al. Geometric selective harmony search
CN105488593A (en) Constant capacity distributed power generation optimal site selection and capacity allocation method based on genetic algorithm
CN106610867B (en) On-chip network task scheduling method and device
CN109413710A (en) Clustering method and device of wireless sensor network based on genetic algorithm optimization
CN108665068A (en) The improved adaptive GA-IAGA of water distribution hydraulic model automatic Check problem
CN108108152A (en) A kind of real random number generator automatic optimization method
CN107808200B (en) Short-time maintenance plan optimization method and device for power distribution network
CN104915788B (en) A method of considering the Electrical Power System Dynamic economic load dispatching of windy field correlation
CN109614224B (en) Power electronic circuit optimization method
CN112286060B (en) Heat supply network temperature control method based on genetic algorithm and fuzzy control technology
CN105633971A (en) Intelligent power distribution network random power flow method based on imperialism competition algorithm
Bevrani et al. Intelligent automatic generation control: Multi-agent Bayesian networks approach
Zhang et al. Game theory‐based optimal deloading control of wind turbines under scalable structures of wind farm
CN112183843B (en) Load optimization distribution method for thermal power plant based on hybrid intelligent algorithm
Shen et al. A Phase‐Based Adaptive Differential Evolution Algorithm for the Economic Load Dispatch Considering Valve‐Point Effects and Transmission Losses
CN110782080B (en) Electric power system structure optimization method based on population performance sorting selection
Chen et al. Research on adaptive genetic algorithm based on multi-population elite selection strategy
Yasin et al. Optimal least squares support vector machines parameter selection in predicting the output of distributed generation
Banerjee et al. Backtracking Search Algorithm With Single and Multi-Objective Function for the Solution of Optimal Power Flow Problem

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 100083 18 floor, West Tower, block D, Tongfang science and Technology Plaza, 1 Wang Zhuang Road, Wudaokou, Haidian District, Beijing.

Applicant after: ZIGUANG TONGXIN MICROELECTRONICS CO.,LTD.

Address before: 100083 18 floor, West Tower, block D, Tongfang science and Technology Plaza, 1 Wang Zhuang Road, Wudaokou, Haidian District, Beijing.

Applicant before: BEIJING TONGFANG MICROELECTRONICS Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant