CN105469145A - Intelligent test paper method based on genetic particle swarm optimization algorithm - Google Patents

Intelligent test paper method based on genetic particle swarm optimization algorithm Download PDF

Info

Publication number
CN105469145A
CN105469145A CN201610028547.1A CN201610028547A CN105469145A CN 105469145 A CN105469145 A CN 105469145A CN 201610028547 A CN201610028547 A CN 201610028547A CN 105469145 A CN105469145 A CN 105469145A
Authority
CN
China
Prior art keywords
population
particle
paper
examination question
fitness value
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
CN201610028547.1A
Other languages
Chinese (zh)
Other versions
CN105469145B (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN201610028547.1A priority Critical patent/CN105469145B/en
Publication of CN105469145A publication Critical patent/CN105469145A/en
Application granted granted Critical
Publication of CN105469145B publication Critical patent/CN105469145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education

Abstract

The invention relates to an intelligent test paper method based on a genetic particle swarm optimization algorithm, comprising: generating the objective function corresponding to each constraint condition according to the constraint condition corresponding to test paper attribute information, and calculating the fitness function of test paper according to the objective function corresponding to each constraint condition; obtaining test questions from an item bank to form a plurality of pieces of test paper, and performing chromosome coding on each piece of test paper, wherein each piece of test paper corresponds to a chromosome, the chromosome includes a plurality of segments, each segment of chromosome corresponds to a type of test questions, and includes a plurality of genes, and each gene corresponds to a test question; obtaining an initial population through a particle swarm algorithm; and processing the initial population through a genetic algorithm to obtain a new population to output test paper therein. According to the technical scheme, the method employs test paper attribute information as constraint conditions to generate a fitness function, and performs particle swarm algorithm and genetic algorithm treatment on test paper according to the fitness function, thereby obtaining test paper meeting user needs.

Description

A kind of Intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm
Technical field
The present invention relates to Intelligent Auto-generating Test Paper technical field, in particular to a kind of Intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm.
Background technology
Traditional group volume operation almost relies on completely and manually completes, or needs semi-artificial carrying out.Artificial group of volume is with high costs and error rate is high, easily occurs careless omission and inevitable human factor, often causes paper group volume scientific and reasonable not.Although semi-artificial group volume part alleviates the labor capacity of staff, the gordian technique work such as selection, layout of examination question still must by manually completing, so still exist, efficiency is lower waits limitation and deficiency.
In recent years, some scientific research institutions of home and abroad have developed some intelligent automatic Test Paper Generation Systems, and employing method mainly contains priority method, random choice method, backtracking trial method, error compensation method etc.Although use these methods can realize automatic volume group to a certain extent, group volume is a multi-objective optimization question, and it is comparatively simple that these methods have; Some group volume methods have larger randomness and uncertainty, are difficult to the actual demand meeting group volume; Some test papers algorithm are large to the occupancy of internal memory, program structure more complicated, and the group volume time is long.The limitation of these methods may cause its paper generated cannot practical requirement.
Summary of the invention
Technical matters to be solved by this invention is, how to improve the intellectuality of group volume, makes to organize the requirement of rolling up and more can meet user.
For this purpose, the present invention proposes a kind of Intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm, comprising:
S1, the constraint condition according to corresponding to paper attribute information generates objective function corresponding to each constraint condition, calculates the fitness function of paper according to the objective function of each constraint condition;
S2, obtains examination question and forms many parts of initial papers, carry out chromosome coding to every part of paper from exam pool, every part of corresponding chromosome of paper, chromosome comprises multistage, every section of corresponding class examination question of chromosome, every section of chromosome comprises multiple gene, each gene corresponding one examination question;
S3, adopts particle cluster algorithm, using every part of paper as a particle, calculates many parts of papers, to obtain many parts of new papers as initial population;
S4, the fitness value of every part of paper in initial population is calculated according to described fitness function, sort according to fitness value, from multiple fitness value, select fitness value to be greater than the paper heredity of default fitness value to the next generation, to generate first generation population according to default select probability;
S5, in first generation population, by the chromosome in the population selected, match between two at random, crossover probability and mutation probability is obtained respectively according to each chromosomal fitness value in two chromosomes of pairing, maximum adaptation angle value and average fitness value calculation, by described crossover probability and mutation probability, two chromosomes to pairing carry out interlace operation
Described interlace operation comprises:
Using pairing two chromosomal multiple corresponding section at least one section as transposition section, exchange the gene of the corresponding transposition section of two chromosomes, to generate two new chromosome, will be new individual as second generation population to the multiple chromosomes generated after chromosome pairings all in first generation population;
S6, in second generation population, arranges at least one change point in each chromosomal every section of chromosome, obtains the examination question that the examination question identical with this change point type replaces this change point, to generate third generation population as new population from exam pool;
S7, calculates the fitness value of multiple individuality in new population, judge whether new population meets pre-conditioned, if meet, then exports corresponding paper, otherwise, new population is returned step S4 as initial population.
Preferably, described paper attribute information comprises: the score value ratio of paper total score, topic type, Reaction time, degree-of-difficulty factor, discrimination, the distribution proportion comprising the A to Z of point, knowledge point score value ratio, cognitive level, topic type, the score value ratio of each difficulty examination question.
Preferably, the constraint of Distribution of knowledge gists wherein, t is the number ratio that knowledge point that paper relates to accounts for the A to Z of point, and T is the ratio that knowledge point that paper that user sets relates to accounts for the A to Z of point;
Degree-of-difficulty factor retrains wherein, h is the actual degree-of-difficulty factor of paper, and H is the degree-of-difficulty factor that user sets;
Discrimination retrains wherein, d is paper actual zone calibration, and D is the discrimination that user sets;
Reaction time retrains wherein, t is the actual Reaction time of paper, and T is the Reaction time that user sets, T i≤ T;
Cognitive level constraint f 5 = Σ i = 1 n | R i - L i L i | n , Wherein, R i = Σ j = 1 m r j , i , | R i - L i L i | And f 6be less than or equal to 1, R irepresent the actual total score of examination question of the cognitive level of the i-th class in paper, L irepresent the examination question total score of the cognitive level of the i-th class of user's setting, n represents the number of cognitive level, the number of M to be cognitive level be whole examination questions of i, r j,ibe the examination question mark of the jth of i for cognitive level, represent that cognitive level is the total score of whole examination questions of i;
The score value ratio constraint of topic type f 6 = Σ i = 1 n | K i - L i L i | n , Wherein, K i = Σ j = 1 m k j , i , | K i - L i L i | And f 7be less than or equal to 1, K irepresent the actual total score of examination question of the i-th class examination question type in paper, L irepresent the examination question total score of the i-th class examination question type of user's setting, n represents the number of examination question type.The number of M to be examination question type be whole examination questions of i, k j,ibe the examination question mark of the jth of i for examination question type, represent that examination question type is the total score of whole examination questions of i;
The score value ratio constraint of each difficulty topic type wherein, and f 8be less than or equal to 1, H irepresent the actual total score of examination question of the i-th class examination question type in paper, L irepresent the examination question total score of the i-th class examination question type of user's setting, n represents the number of examination question type, the number of M to be examination question type be whole examination questions of i, h j,ibe the examination question mark of the jth of i for examination question type, represent that examination question type is the total score of whole examination questions of i.
Preferably, described step S1 comprises:
To institute's Constrained weighted sum, f = Σ i = 1 n w i f i , i = 1 , ... , 7 ,
The target generic function of f expression group volume, w irepresent the weights of i-th index, w i> 0, w if irepresent the objective function of i-th paper attribute information constraint.
Preferably, described step S1 comprises:
Generate fitness function F=1/ (1+f).
Preferably, described step S3 comprises:
S31: the speed v of each particle in initialization population m 1, position x 1, population size, be vector x to the position of arbitrary particle i and dimension s, particle i i=(x i1, x i2..., x is), pace of change is v i=(v i1, v i2..., v is).Particle i is at position range [-x max, x max] in obey be uniformly distributed produce x is, to arbitrary particle i and dimension s, at velocity range [-v max, v max] in obey be uniformly distributed produce v is, wherein, m is the quantity of paper in population, and s equals the quantity of constraint condition, x maxand v maxfor the position that presets and velocity amplitude;
S32: each particle according to initialized position and velocity variations, by the x of particle i isubstitute into fitness function and calculate corresponding fitness value, at f 1middle x ifor t, at f 2middle x ifor h, at f 3middle x ifor d, at f 4middle x ifor t, at f 5middle x ifor R i, at f 6middle x ifor K i, at f 7middle x ifor H i, calculate the fitness value of each particle in change procedure, the optimal location P of each particle in storage change process bestand the fitness value of correspondence, using the optimal location G of the position of particle maximum for fitness value in population in change procedure as population bestif, P best=(p i1, p i2..., p is), G best=(g i1, g i2..., g is), p isfor the value of s constraint in particle i change procedure, g isfor the value of s constraint in particle i change procedure;
S33: the optimal location P that the fitness value of each particle is lived through with it bestcorresponding fitness value compares, if comparatively large, then using position corresponding for this fitness value as current optimal location;
S34: by the optimal location G of population in change procedure before the fitness value of each particle and its bestcorresponding fitness value compares, if comparatively large, then using position corresponding for this fitness value as current population optimal location;
S35: judge whether change frequency is greater than preset times, or whether meet: the fitness value of current each particle equals the P in previous change bestcorresponding fitness value, and the maximum adaptation angle value in current population equals the G in previous change bestcorresponding fitness value, if change frequency reaches preset times or meets above-mentioned condition, then will obtain many parts of new papers as initial population, otherwise returns step S33.
Preferably, described step S32 comprises:
In the t time change of i-th particle, the position of the n-th dimension is speed is distance between i-th particle current location and its optimal location lived through is i-th particle current location and before it in change procedure population optimum position between distance be the position of i-th particle, the t+1 time change speed as follows:
v i n t + 1 = wv i n t + c 1 r 1 ( p i n t - x i n t ) + c 2 r 2 ( p g n t - x i n t ) ;
x i n t + 1 = x i n t + v i n t + 1 ;
Wherein 1≤i≤m, 1≤n≤s, c1, c2 are the nonnegative constant that user sets, r 1and r 2for the random number between [0,1] of user's setting, w is inertia weight coefficient, represent the speed of i-th particle, n-th dimension in the t time iteration, as the acceleration of i-th particle in the t+1 time change procedure, as the acceleration of colony in the t+1 time change procedure.
Preferably, described step S5 comprises:
Each chromosomal crossover probability P is obtained respectively according to each chromosomal fitness value in two chromosomes of pairing, maximum adaptation angle value and average fitness value calculation cwith mutation probability P m, wherein,
P c = c 1 ( f max - f c ) f max - f a v g f c &GreaterEqual; f a v g c 2 f c < f a v g , P m = k 1 ( f max - f m ) f max - f a v g f m &GreaterEqual; f a v g k 2 f m < f a v g ,
F cfor participating in the larger fitness in the fitness of the two parts of papers intersected, f mfor the individual fitness value that makes a variation, f maxfor the maximum adaptation angle value in population, f avgfor the average fitness value of population, c 1, c 2, k 1, k 2be user set between (0,1] constant.
Preferably, described pre-conditioned comprise following at least one or its combination:
User's initial conditions terminates heredity;
In maximum adaptation degree in current population and former generation population, fitness difference is less than preset value;
Reach default evolutionary generation.
According to technique scheme, fitness function can be generated using the attribute information of paper as constraint condition, and according to fitness function, particle cluster algorithm and genetic algorithm process be carried out to paper, thus be met the paper of user's needs.
Accompanying drawing explanation
Can understanding the features and advantages of the present invention clearly by reference to accompanying drawing, accompanying drawing is schematic and should not be construed as and carry out any restriction to the present invention, in the accompanying drawings:
Fig. 1 shows according to an embodiment of the invention based on the schematic flow diagram of the Intelligent Auto-generating Test Paper method of Genetic Particle Swarm Algorithm;
Fig. 2 shows the schematic flow diagram of particle cluster algorithm according to an embodiment of the invention.
Embodiment
Can more clearly understand above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail.It should be noted that, when not conflicting, the feature in the embodiment of the application and embodiment can combine mutually.
Set forth a lot of detail in the following description so that fully understand the present invention; but; the present invention can also adopt other to be different from other modes described here and implement, and therefore, protection scope of the present invention is not by the restriction of following public specific embodiment.
As shown in Figure 1, according to an embodiment of the invention based on the Intelligent Auto-generating Test Paper method of Genetic Particle Swarm Algorithm, comprising:
S1, the constraint condition according to corresponding to paper attribute information generates objective function corresponding to each constraint condition, calculates the fitness function of paper according to the objective function of each constraint condition;
S2, obtains examination question and forms many parts of initial papers, carry out chromosome coding to every part of paper from exam pool, every part of corresponding chromosome of paper, chromosome comprises multistage, every section of corresponding class examination question of chromosome, every section of chromosome comprises multiple gene, each gene corresponding one examination question;
S3, adopts particle cluster algorithm, using every part of paper as a particle, calculates many parts of papers, to obtain many parts of new papers as initial population;
S4, the fitness value of every part of paper in initial population is calculated according to fitness function, sort according to fitness value, from multiple fitness value, select fitness value to be greater than the paper heredity of default fitness value to the next generation, to generate first generation population according to default select probability;
S5, in first generation population, by the chromosome in the population selected, match between two at random, crossover probability and mutation probability is obtained respectively according to each chromosomal fitness value in two chromosomes of pairing, maximum adaptation angle value and average fitness value calculation, by crossover probability and mutation probability, two chromosomes to pairing carry out interlace operation
Interlace operation comprises:
Using pairing two chromosomal multiple corresponding section at least one section as transposition section, exchange the gene of the corresponding transposition section of two chromosomes, to generate two new chromosome, will be new individual as second generation population to the multiple chromosomes generated after chromosome pairings all in first generation population;
S6, in second generation population, arranges at least one change point in each chromosomal every section of chromosome, obtains the examination question that the examination question identical with this change point type replaces this change point, to generate third generation population as new population from exam pool;
S7, calculates the fitness value of multiple individuality in new population, judge whether new population meets pre-conditioned, if meet, then exports corresponding paper, otherwise, new population is returned step S4 as initial population.
The present embodiment is before carrying out genetic algorithm, first by particle cluster algorithm, iterative processing is carried out to paper group, the quality drawing paper can be evaluated by fitness value, it is more simple relative to genetic algorithm rule, " intersection " and " variation " in genetic algorithm is not had to operate, by follow current search to optimal value find global optimum, initial population can be drawn rapidly.Further genetic algorithm process is carried out to initial population, can realize restraining quickly.
The present embodiment neatly using every part of paper as a chromosome, every problem is participated in the computing of genetic algorithm as the gene of on chromosome, thus can be calculated the many parts of papers as a colony by genetic algorithm, according to the principle of the survival of the fittest and the survival of the fittest, develop by generation and produce the approximate solution of becoming better and better, in every generation, select individual according to fitness size individual in Problem Areas, and carry out the operation of combination crossover and mutation by means of the genetic operator of natural genetics, produce the population representing new disaggregation, the same rear life of the worm images of a group of characters natural evolution of many parts of paper compositions is made more to be adapted to environment (more meeting user to require) for population than former generation population, optimum individual in last reign of a dynasty population is through decoding, namely can as problem approximate optimal solution, also the paper namely needed for user exports.
Preferably, paper attribute information comprises: paper total score (such as 100 points), topic type (such as comprises topic of filling a vacancy, multiple-choice question, letter answer, True-False, calculation question, proof question, synthesis problem), Reaction time (such as 90 minutes), degree-of-difficulty factor (the complexity index of paper, generally can be arranged on (0-1] between), (index of candidate ability level height distinguished by paper to discrimination, generally at (0-1] between), comprise the ratio (such as covering 80% of required investigation knowledge point) of the A to Z of point, (total score of the corresponding examination question in such as single knowledge point is no more than at most 15% of whole paper total score to knowledge point score value distribution proportion, ), cognitive level (such as requires that the topic remembered accounts for 20%, require that the topic understood accounts for 30%, require that the topic of application accounts for 40%, require that the topic of integrated application accounts for 10%), (such as multiple-choice question accounts for 20% to the score value ratio of topic type, topic of filling a vacancy accounts for 20%, calculation question accounts for 20%, proof question accounts for 30%, synthesis problem accounts for 10%), (such as easily topic accounts for 40% to the score value ratio of each difficulty topic type, medium topic accounts for 40%, a difficult problem accounts for 20%).
The multiple attribute information as constraint condition that the present embodiment provides can meet the group volume needs of user to the full extent.In addition, in step s 2, from exam pool, obtain examination question when forming many parts of papers, need to judge that paper is the need of satisfied 2 conditions: one, whether examination question total score meets preset requirement, and such as paper total score is 100 points; Its two, the maximal value of the single knowledge point mark that examination question is corresponding meets preset requirement, and the such as score value of single knowledge point is no more than 15% of the total score value of paper.
Preferably, the constraint of Distribution of knowledge gists wherein, t is the number ratio that knowledge point that paper relates to accounts for the A to Z of point, and T is the ratio that knowledge point that paper that user sets relates to accounts for the A to Z of point;
Degree-of-difficulty factor retrains wherein, h is the actual degree-of-difficulty factor of paper, and H is the degree-of-difficulty factor that user sets;
Discrimination retrains wherein, d is paper actual zone calibration, and D is the discrimination that user sets;
Reaction time retrains wherein, t is the actual Reaction time of paper, and T is the Reaction time that user sets, T i≤ T;
Cognitive level constraint f 5 = &Sigma; i = 1 n | R i - L i L i | n , Wherein, R i = &Sigma; j = 1 m r j , i , | R i - L i L i | And f 6be less than or equal to 1, R irepresent the actual total score of examination question of the cognitive level of the i-th class in paper, L irepresent the examination question total score of the cognitive level of the i-th class of user's setting, n represents the number of cognitive level, the number of M to be cognitive level be whole examination questions of i, r j,ibe the examination question mark of the jth of i for cognitive level, represent that cognitive level is the total score of whole examination questions of i;
The score value ratio constraint of topic type f 6 = &Sigma; i = 1 n | K i - L i L i | n , Wherein, K i = &Sigma; j = 1 m k j , i , | K i - L i L i | And f 7be less than or equal to 1, K irepresent the actual total score of examination question of the i-th class examination question type in paper, L irepresent the examination question total score of the i-th class examination question type of user's setting, n represents the number of examination question type.The number of M to be examination question type be whole examination questions of i, k j,ibe the examination question mark of the jth of i for examination question type, represent that examination question type is the total score of whole examination questions of i;
The score value ratio constraint of each difficulty topic type wherein, and f 8be less than or equal to 1, H irepresent the actual total score of examination question of the i-th class examination question type in paper, L irepresent the examination question total score of the i-th class examination question type of user's setting, n represents the number of examination question type, the number of M to be examination question type be whole examination questions of i, h j,ibe the examination question mark of the jth of i for examination question type, represent that examination question type is the total score of whole examination questions of i.
Preferably, step S1 comprises:
To institute's Constrained weighted sum, f = &Sigma; i = 1 n w i f i , i = 1 , ... , 7 ,
The target generic function of f expression group volume, w irepresent the weights of i-th index, w i> 0, w if irepresent the objective function of i-th paper attribute information constraint.
Preferably, step S1 comprises:
Generate fitness function F=1/ (1+f).
As shown in Figure 2, preferably, step S3 comprises:
S31: the speed v of each particle in initialization population m 1, position x 1, population size, be x to the position of arbitrary particle i and dimension s, particle i i=(x i1, x i2..., x is), pace of change is v i=(v i1, v i2..., v is).Particle is at position range [-x max, x max] in obey be uniformly distributed produce x is, to arbitrary particle i and dimension s, at velocity range [-v max, v max] in obey be uniformly distributed produce v is, wherein, m is the quantity of paper in population, and s equals the quantity of constraint condition, x maxand v maxfor the position that presets and velocity amplitude;
S32: each particle according to initialized position and velocity variations, by the x of particle i isubstitute into fitness function and calculate corresponding fitness value, at f 1middle x ifor t, at f 2middle x ifor h, at f 3middle x ifor d, at f 4middle x ifor t, at f 5middle x ifor R i, at f 6middle x ifor K i, at f 7middle x ifor H i.Calculate the fitness value of each particle in change procedure, the optimal location P of each particle in storage change process bestand the fitness value of correspondence, using the optimal location G of the position of particle maximum for fitness value in population in change procedure as population bestif, P best=(p i1, p i2..., p is), G best=(g i1, g i2..., g is), p isfor the value of s constraint in particle i change procedure, g sfor the value of s constraint in particle i change procedure;
S33: the optimal location P that the fitness value of each particle is lived through with it bestcorresponding fitness value compares, if comparatively large, then using position corresponding for this fitness value as current optimal location;
S34: by the optimal location G of population in change procedure before the fitness value of each particle and its bestcorresponding fitness value compares, if comparatively large, then using position corresponding for this fitness value as current population optimal location;
S35: judge whether change frequency is greater than preset times, or whether meet: the fitness value of current each particle equals the P in previous change bestcorresponding fitness value, and the maximum adaptation angle value in current population equals the G in previous change bestcorresponding fitness value, if change frequency reaches preset times or meets above-mentioned condition, then will obtain many parts of new papers as initial population, otherwise returns step S33.
In the present embodiment, the predation of particle cluster algorithm simulation flock of birds.Imagine such scene: bevy is at random search food, one piece of food is only had in this region, all birds do not know that food there, but they know how far current position also has from food, so finds the optimal strategy of food to be exactly search the peripheral region of the current bird nearest from food.
In particle cluster algorithm, the solution of every part of paper is all a bird in search volume, is referred to as particle.All particles have a fitness value, the direction that each particle also has a speed to determine to circle in the air and distance, and then particles are just followed current optimal particle and searched in solution space.
Paper is initialized as a group random particles by particle cluster algorithm, then finds optimum solution by iteration (change).In each iteration, particle upgrades self by following the tracks of two extreme values, first optimum solution P being exactly particle itself and finding best; Another extreme value is the optimum solution G that whole population is found at present best.
Compared with genetic algorithm, in particle cluster algorithm, the shared mechanism of information is different. in genetic algorithm, chromosome shares information mutually, so the movement of whole population to be moved to optimal region more uniformly, in particle cluster algorithm, only has P bestor G besttransmission information is to other particle, and this is unidirectional information flow, and whole search renewal process is the process of following current optimum solution, compares with genetic algorithm, and at most of conditions, all particles may converge on optimum solution faster.
Process initial population further by genetic algorithm, genetic algorithm can be searched for from the trail of solution (required paper), instead of from single solution.And traditional optimized algorithm asks optimum solution from single initial value iteration, be easily strayed into locally optimal solution.And genetic algorithm is searched for from trail, wide coverage, is beneficial to the overall situation preferentially.
In addition, genetic algorithm can process the multiple individualities in colony simultaneously, namely assesses the multiple solutions in search volume, decreases the risk being absorbed in locally optimal solution, and algorithm itself is easy to realize parallelization simultaneously.
Preferably, step S32 comprises:
In the t time change of i-th particle, the position of the n-th dimension is speed is i-th particle current location and and its optimal location lived through between distance be i-th particle current location and before it in change procedure population optimum position between distance be the position of i-th particle, the t+1 time change speed as follows:
v i n t + 1 = wv i n t + c 1 r 1 ( p i n t - x i n t ) + c 2 r 2 ( p g n t - x i n t ) ;
x i n t + 1 = x i n t + v i n t + 1 ,
Wherein 1≤i≤m, 1≤n≤s, c1, c2 are the nonnegative constant that user sets, r 1and r 2for the random number between [0,1] of user's setting, w is inertia weight coefficient, represent the speed of i-th particle, n-th dimension in the t time iteration, as the acceleration of i-th particle in the t+1 time change procedure, as the acceleration of colony in the t+1 time change procedure.
Preferably, step S5 comprises:
Each chromosomal crossover probability P is obtained respectively according to each chromosomal fitness value in two chromosomes of pairing, maximum adaptation angle value and average fitness value calculation cwith mutation probability P m, wherein,
P c = c 1 ( f max - f c ) f max - f a v g f c &GreaterEqual; f a v g c 2 f c < f a v g , P m = k 1 ( f max - f m ) f max - f a v g f m &GreaterEqual; f a v g k 2 f m < f a v g ,
F cfor participating in the larger fitness in the fitness of the two parts of papers intersected, f mfor the individual fitness value that makes a variation, f maxfor the maximum adaptation angle value in population, f avgfor the average fitness value of population, c 1, c 2, k 1, k 2be user set between (0,1] constant.
Pass through the present embodiment, the individuality that fitness is high can be made, select lower crossover probability and mutation probability, thus this individuality is more easily retained and enters the next generation, and the individuality making fitness low, select higher crossover probability and mutation probability, thus this individuality is more easily eliminated, and not easily remain into the next generation, therefore can ensure that rear life is for the needs of the paper in population closer to user during evolution.
Preferably, pre-conditioned comprise following at least one or its combination:
User's initial conditions terminates heredity;
In maximum adaptation degree in current population and former generation population, fitness difference is less than preset value;
Reach default evolutionary generation.
Although describe embodiments of the present invention by reference to the accompanying drawings, but those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, such amendment and modification all fall into by within claims limited range.

Claims (9)

1., based on an Intelligent Auto-generating Test Paper method for Genetic Particle Swarm Algorithm, it is characterized in that, comprising:
S1, the constraint condition according to corresponding to paper attribute information generates objective function corresponding to each constraint condition, calculates the fitness function of paper according to the objective function of each constraint condition;
S2, obtains examination question and forms many parts of initial papers, carry out chromosome coding to every part of paper from exam pool, every part of corresponding chromosome of paper, chromosome comprises multistage, every section of corresponding class examination question of chromosome, every section of chromosome comprises multiple gene, and each gene pairs should one examination question;
S3, adopts particle cluster algorithm, using every part of paper as a particle, calculates many parts of papers, to obtain many parts of new papers as initial population;
S4, the fitness value of every part of paper in initial population is calculated according to described fitness function, sort according to fitness value, from multiple fitness value, select fitness value to be greater than the paper heredity of default fitness value to the next generation, to generate first generation population according to default select probability;
S5, in first generation population, by the chromosome in the population selected, match between two at random, crossover probability and mutation probability is obtained respectively according to each chromosomal fitness value in two chromosomes of pairing, maximum adaptation angle value and average fitness value calculation, by described crossover probability and mutation probability, two chromosomes to pairing carry out interlace operation
Described interlace operation comprises:
Using pairing two chromosomal multiple corresponding section at least one section as transposition section, exchange the gene of the corresponding transposition section of two chromosomes, to generate two new chromosome, will be new individual as second generation population to the multiple chromosomes generated after chromosome pairings all in first generation population;
S6, in second generation population, arranges at least one change point in each chromosomal every section of chromosome, obtains the examination question that the examination question identical with this change point type replaces this change point, to generate third generation population as new population from exam pool;
S7, calculates the fitness value of multiple individuality in new population, judge whether new population meets pre-conditioned, if meet, then exports corresponding paper, otherwise, new population is returned step S4 as initial population.
2. method according to claim 1, it is characterized in that, described paper attribute information comprises: the score value ratio of paper total score, topic type, Reaction time, degree-of-difficulty factor, discrimination, the distribution proportion comprising the A to Z of point, knowledge point score value ratio, cognitive level, topic type, the score value ratio of each difficulty examination question.
3. method according to claim 2, is characterized in that,
The constraint of Distribution of knowledge gists wherein, t is the number ratio that knowledge point that paper relates to accounts for the A to Z of point, and T is the ratio that knowledge point that paper that user sets relates to accounts for the A to Z of point;
Degree-of-difficulty factor retrains wherein, h is the actual degree-of-difficulty factor of paper, and H is the degree-of-difficulty factor that user sets;
Discrimination retrains wherein, d is paper actual zone calibration, and D is the discrimination that user sets;
Reaction time retrains wherein, t is the actual Reaction time of paper, and T is the Reaction time that user sets, t≤T;
Cognitive level constraint f 5 = &Sigma; i = 1 n | R i - L i L i | n , Wherein, R i = &Sigma; j = 1 m r j , i , and f 6be less than or equal to 1, R irepresent the actual total score of examination question of the cognitive level of the i-th class in paper, L irepresent the examination question total score of the cognitive level of the i-th class of user's setting, n represents the number of cognitive level, the number of M to be cognitive level be whole examination questions of i, r j,ibe the examination question mark of the jth of i for cognitive level, represent that cognitive level is the total score of whole examination questions of i;
The score value ratio constraint of topic type f 6 = &Sigma; i = 1 n | K i - L i L i | n , Wherein, K i = &Sigma; j = 1 m k j , i , and f 7be less than or equal to 1, K irepresent the actual total score of examination question of the i-th class examination question type in paper, L irepresent the examination question total score of the i-th class examination question type of user's setting, n represents the number of examination question type.The number of M to be examination question type be whole examination questions of i, k j,ibe the examination question mark of the jth of i for examination question type, represent that examination question type is the total score of whole examination questions of i;
The score value ratio constraint of each difficulty topic type wherein, and f 8be less than or equal to 1, H irepresent the actual total score of examination question of the i-th class examination question type in paper, L irepresent the examination question total score of the i-th class examination question type of user's setting, n represents the number of examination question type, the number of M to be examination question type be whole examination questions of i, h j,ibe the examination question mark of the jth of i for examination question type, represent that examination question type is the total score of whole examination questions of i.
4. method according to claim 3, is characterized in that, described step S1 comprises:
To institute's Constrained weighted sum, i=1 ..., 7,
The target generic function of f expression group volume, w irepresent the weights of i-th index, w i> 0, w if irepresent the objective function of i-th paper attribute information constraint.
5. method according to claim 4, is characterized in that, described step S1 comprises: generate fitness function F=1/ (1+f).
6. method according to claim 5, is characterized in that, described step S3 comprises:
S31: the speed v of each particle in initialization population m 1, position x 1, population size, be x to the position of arbitrary particle i and dimension s, particle i i=(x i1, x i2..., x is), pace of change is v i=(v i1, v i2..., v is), particle is at position range [-x max, x max] in obey be uniformly distributed produce x is, to arbitrary particle i and dimension s, at velocity range [-v max, v max] in obey be uniformly distributed produce v i s, wherein m is the quantity of paper in population, and s equals the quantity of constraint condition, x maxand v maxfor the position that presets and velocity amplitude;
S32: each particle according to initialized position and velocity variations, by the x of particle i isubstitute into fitness function and calculate corresponding fitness value, at f 1middle x ifor t, at f 2middle x ifor h, at f 3middle x ifor d, at f 4middle x ifor t, at f 5middle x ifor R i, at f 6middle x ifor K i, at f 7middle x ifor H i, calculate the fitness value of each particle in change procedure, the optimal location P of each particle in storage change process bestand the fitness value of correspondence, using the optimal location G of the position of particle maximum for fitness value in population in change procedure as population bestif, P best=(p i1, p i2..., p is), G best=(g i1, g i2..., g is), p isfor the value of s constraint in particle i change procedure, g isfor the value of s constraint in particle i change procedure;
S33: the optimal location P that the fitness value of each particle is lived through with it bestcorresponding fitness value compares, if comparatively large, then using position corresponding for this fitness value as current optimal location;
S34: by the optimal location G of population in change procedure before the fitness value of each particle and its bestcorresponding fitness value compares, if comparatively large, then using position corresponding for this fitness value as current population optimal location;
S35: judge whether change frequency is greater than preset times, or whether meet: the fitness value of current each particle equals the P in previous change bestcorresponding fitness value, and the maximum adaptation angle value in current population equals the G in previous change bestcorresponding fitness value, if change frequency reaches preset times or meets above-mentioned condition, then will obtain many parts of new papers as initial population, otherwise returns step S33.
7. method according to claim 6, is characterized in that, described step S32 comprises:
In the t time change of i-th particle, the position of the n-th dimension is speed is i-th particle current location and and its optimal location lived through between distance be i-th particle current location and before it in change procedure population optimum position between distance be the position of i-th particle, the t+1 time change speed as follows:
v i n t + 1 = wv i n t + c 1 r 1 ( p i n t - x i n t ) + c 2 r 2 ( p g n t - x i n t ) ;
x i n t + 1 = x i n t + v i n t + 1 ;
Wherein 1≤i≤m, 1≤n≤s, c1, c2 are the nonnegative constant that user sets, r 1and r 2for the random number between [0,1] of user's setting, w is inertia weight coefficient, represent the speed of i-th particle, n-th dimension in the t time iteration, as the acceleration of i-th particle in the t+1 time change procedure, as the acceleration of colony in the t+1 time change procedure.
8. method according to claim 7, is characterized in that, described step S5 comprises:
Each chromosomal crossover probability P is obtained respectively according to each chromosomal fitness value in two chromosomes of pairing, maximum adaptation angle value and average fitness value calculation cwith mutation probability P m, wherein,
P c = c 1 ( f max - f c ) f max - f a v g f c &GreaterEqual; f a v g c 2 f c < f a v g , P m = k 1 ( f max - f m ) f max - f a v g f m &GreaterEqual; f a v g k 2 f m < f a v g ,
F cfor participating in the larger fitness in the fitness of the two parts of papers intersected, f mfor the individual fitness value that makes a variation, f maxfor the maximum adaptation angle value in population, f avgfor the average fitness value of population, c 1, c 2, k 1, k 2be user set between (0,1] constant.
9. method according to claim 8, is characterized in that, described pre-conditioned comprise following at least one or its combination:
User's initial conditions terminates heredity;
In maximum adaptation degree in current population and former generation population, fitness difference is less than preset value;
Reach default evolutionary generation.
CN201610028547.1A 2016-01-15 2016-01-15 A kind of intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm Active CN105469145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610028547.1A CN105469145B (en) 2016-01-15 2016-01-15 A kind of intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610028547.1A CN105469145B (en) 2016-01-15 2016-01-15 A kind of intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm

Publications (2)

Publication Number Publication Date
CN105469145A true CN105469145A (en) 2016-04-06
CN105469145B CN105469145B (en) 2018-12-11

Family

ID=55606815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610028547.1A Active CN105469145B (en) 2016-01-15 2016-01-15 A kind of intelligent Auto-generating Test Paper method based on Genetic Particle Swarm Algorithm

Country Status (1)

Country Link
CN (1) CN105469145B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682788A (en) * 2017-01-09 2017-05-17 郑州云海信息技术有限公司 Method and device for selection sequence determination
CN106710344A (en) * 2017-02-13 2017-05-24 盐城工学院 Computer application examination system
CN106897767A (en) * 2017-03-03 2017-06-27 盐城工学院 Automatic volume group method and device
CN107194743A (en) * 2017-06-19 2017-09-22 腾讯科技(深圳)有限公司 A kind of network surveying questionnaire generation method and device
CN107590247A (en) * 2017-09-18 2018-01-16 杭州博世数据网络有限公司 A kind of intelligent Auto-generating Test Paper method based on group knowledge diagnosis
CN107832453A (en) * 2017-11-24 2018-03-23 重庆科技学院 Virtual test paper recommendation method oriented to personalized learning scheme
CN109003492A (en) * 2018-07-25 2018-12-14 厦门大学附属心血管病医院(厦门市心脏中心) A kind of topic selection method, device and terminal device
CN109684366A (en) * 2018-12-20 2019-04-26 国家计算机网络与信息安全管理中心 A kind of knowledge base group volume method for industrial control system risk assessment
CN110599839A (en) * 2019-10-23 2019-12-20 济南盈佳科技有限责任公司 Online examination method and system based on intelligent paper grouping and text analysis review
CN111242267A (en) * 2019-12-31 2020-06-05 国网北京市电力公司 Examination paper composing method and examination paper composing device for on-line examination
CN111507872A (en) * 2020-04-09 2020-08-07 圆梦共享教育科技(深圳)有限公司 Artificial intelligence-based accurate test difficulty classification method
CN112182172A (en) * 2020-09-23 2021-01-05 华南师范大学 Volume forming method, system, device and medium based on particle swarm genetic algorithm
CN117216195A (en) * 2023-11-08 2023-12-12 湖南强智科技发展有限公司 Intelligent paper-making method, system, equipment and storage medium for course examination of universities

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104732352A (en) * 2015-04-02 2015-06-24 张可 Method for question bank quality evaluation

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104732352A (en) * 2015-04-02 2015-06-24 张可 Method for question bank quality evaluation

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
JIAO CUIZHEN ETAL.: "Research of Intelligent Test Paper Construction", 《MICROELECTRONICS & COMPUTER》 *
周艳丽: "基于改进遗传算法的自动组卷问题研究", 《计算机仿真》 *
杜利峰 等: "改进的粒子群算法在智能组卷中的应用研究", 《信息技术》 *
金晶 等: "一种改进的自适应遗传算法", 《计算机工程与应用》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682788A (en) * 2017-01-09 2017-05-17 郑州云海信息技术有限公司 Method and device for selection sequence determination
CN106710344A (en) * 2017-02-13 2017-05-24 盐城工学院 Computer application examination system
CN106897767A (en) * 2017-03-03 2017-06-27 盐城工学院 Automatic volume group method and device
CN107194743A (en) * 2017-06-19 2017-09-22 腾讯科技(深圳)有限公司 A kind of network surveying questionnaire generation method and device
CN107194743B (en) * 2017-06-19 2019-04-09 腾讯科技(深圳)有限公司 A kind of network surveying questionnaire generation method and device
CN107590247A (en) * 2017-09-18 2018-01-16 杭州博世数据网络有限公司 A kind of intelligent Auto-generating Test Paper method based on group knowledge diagnosis
CN107832453A (en) * 2017-11-24 2018-03-23 重庆科技学院 Virtual test paper recommendation method oriented to personalized learning scheme
CN109003492A (en) * 2018-07-25 2018-12-14 厦门大学附属心血管病医院(厦门市心脏中心) A kind of topic selection method, device and terminal device
CN109684366A (en) * 2018-12-20 2019-04-26 国家计算机网络与信息安全管理中心 A kind of knowledge base group volume method for industrial control system risk assessment
CN110599839A (en) * 2019-10-23 2019-12-20 济南盈佳科技有限责任公司 Online examination method and system based on intelligent paper grouping and text analysis review
CN111242267A (en) * 2019-12-31 2020-06-05 国网北京市电力公司 Examination paper composing method and examination paper composing device for on-line examination
CN111507872A (en) * 2020-04-09 2020-08-07 圆梦共享教育科技(深圳)有限公司 Artificial intelligence-based accurate test difficulty classification method
CN111507872B (en) * 2020-04-09 2023-04-07 圆梦共享教育科技(深圳)有限公司 Artificial intelligence-based accurate test difficulty classification method
CN112182172A (en) * 2020-09-23 2021-01-05 华南师范大学 Volume forming method, system, device and medium based on particle swarm genetic algorithm
CN117216195A (en) * 2023-11-08 2023-12-12 湖南强智科技发展有限公司 Intelligent paper-making method, system, equipment and storage medium for course examination of universities
CN117216195B (en) * 2023-11-08 2024-02-02 湖南强智科技发展有限公司 Intelligent paper-making method, system, equipment and storage medium for course examination of universities

Also Published As

Publication number Publication date
CN105469145B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN105469145A (en) Intelligent test paper method based on genetic particle swarm optimization algorithm
Yang et al. Compact real-valued teaching-learning based optimization with the applications to neural network training
Young et al. Optimizing deep learning hyper-parameters through an evolutionary algorithm
Panda et al. Evolutionary techniques for model order reduction of large scale linear systems
CN109932903A (en) The air-blower control Multipurpose Optimal Method of more parent optimization networks and genetic algorithm
CN106560848A (en) Novel neural network model for simulating biological bidirectional cognition capability, and training method
CN110298491A (en) A kind of transportation network node selecting method based on slime mould swarm intelligence
CN109934422A (en) Neural network wind speed prediction method based on time series data analysis
CN104463251A (en) Cancer gene expression profile data identification method based on integration of extreme learning machines
Qi et al. A self-exploratory competitive swarm optimization algorithm for large-scale multiobjective optimization
Buditjahjanto et al. An intelligent decision support based on a subtractive clustering and fuzzy inference system for multiobjective optimization problem in serious game
Huang et al. Niching community based differential evolution for multimodal optimization problems
CN102799940B (en) Online community partitioning method based on genetic algorithm and priori knowledge
CN104732522A (en) Image segmentation method based on polymorphic ant colony algorithm
CN105678380A (en) Ecological niche and adaptive negative correlation learning-based evolutionary neural network integration method
CN113222288B (en) Classified evolution and prediction method of village and town community space development map
Lin et al. The design of TSK‐type fuzzy controllers using a new hybrid learning approach
Steenkamp Multi-guide particle swarm optimization for many-objective optimization problems
Satapathy et al. Integrated PSO and DE for data clustering
Ultsch Clustering with databots
CN105912887B (en) A kind of modified gene expression programming-fuzzy C-mean algorithm crop data sorting technique
Dostál et al. Cluster analysis and neural network
Sun et al. A Particle Swarm Optimization with Dynamic Strategy for Multi-Modal Multi-Objective Location Optimization Problem
Sarangi Particle Swarm Optimisation applied to Economic Load Dispatch problem
Muni et al. Evolution of fuzzy classifiers using genetic programming

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant