CN105574231A - Storage battery surplus capacity detection method - Google Patents

Storage battery surplus capacity detection method Download PDF

Info

Publication number
CN105574231A
CN105574231A CN201510846238.0A CN201510846238A CN105574231A CN 105574231 A CN105574231 A CN 105574231A CN 201510846238 A CN201510846238 A CN 201510846238A CN 105574231 A CN105574231 A CN 105574231A
Authority
CN
China
Prior art keywords
particle
remaining battery
battery capacity
algorithm
optimal 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.)
Pending
Application number
CN201510846238.0A
Other languages
Chinese (zh)
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.)
Shanghai Jiaotong University
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jilin Electric Power Co Ltd
Original Assignee
Shanghai Jiaotong University
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jilin Electric Power 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 Shanghai Jiaotong University, State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Jilin Electric Power Co Ltd filed Critical Shanghai Jiaotong University
Priority to CN201510846238.0A priority Critical patent/CN105574231A/en
Publication of CN105574231A publication Critical patent/CN105574231A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/36Circuit design at the analogue level
    • G06F30/367Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
    • 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/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Biophysics (AREA)
  • General Engineering & Computer Science (AREA)
  • Evolutionary Computation (AREA)
  • General Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Genetics & Genomics (AREA)
  • Physiology (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Geometry (AREA)
  • Secondary Cells (AREA)

Abstract

The invention provides a storage battery surplus capacity detection method based on a theory of a genetic algorithm and a particle swarm optimization algorithm-least squares support vector machine. According to the method, the least squares support vector machine is taken as the basis; the particle swarm optimization algorithm is adopted for performing parameter optimization for a kernel function parameter and a penalty coefficient, so that simulation precision is improved; meanwhile, the global searching ability of the algorithm is enhanced by introducing the genetic algorithm to prevent from occurring local optimal solution; the storage battery surplus capacity can be detected by only detecting the open circuit voltage, the environment temperature and the internal resistance of the storage battery; finally, through comparison between experiment data and prediction data, the average error of the detection method can be controlled within 5%; and the prediction accuracy is greatly improved compared with the conventional least squares support vector machine method.

Description

A kind of remaining battery capacity detection method
Technical field
The present invention relates to technical field of electric power, particularly relate to a kind of remaining battery capacity detection algorithm based on GAPSO-LSSVM.
Background technology
Lead-acid accumulator is simple, easy to use, the cheap electrochmical power source of a kind of structure.It is widely used among all trades and professions such as electric power, communication.Lead-acid accumulator stable, the operation of reliably working to whole system is most important.Research experiment shows, ensure the normal operation of system, extend the serviceable life of accumulator, just must detect the residual capacity SOC of accumulator (i.e. state-of-charge StateofCharge), thus facilitate slip-stick artist can understand the duty of accumulator, to take control strategy in time.Because lead-acid accumulator is of a great variety, purposes and external environment condition different, add that the influence factor of remaining battery capacity is numerous, therefore its prediction adopt method also varied.
The modeling method that general remaining battery capacity detects roughly can be divided into two large classes: a class is Method of Physical Modeling; Another kind of, be the identification and parameter estimation modeling method of system.
Having of Method of Physical Modeling is used: 1, ampere-hour electric discharge, this method needs initial capacity and the efficiency for charge-discharge of determining accumulator in battery remaining power prediction.2, internal resistance detection method, internal resistance method can not at 0 ~ 100% FR interior detection remaining battery capacity.3, open-circuit voltage method, has Linearity preferably between open-circuit voltage and residual capacity, but cannot get rid of this important influence factor of temperature to the impact of the SOC of accumulator.And the open-circuit voltage measuring accumulator needs accumulator to leave standstill for a long time under off-line state; The another kind of SOC Forecasting Methodology about the identification of system and the estimation of parameter has following several: 1 Kalman filtering method, and the method will set up corresponding comparatively complicate mathematical model, and calculated amount is larger.2 artificial neural network methods, although neural network precision of prediction is higher, need a large amount of training samples for its study, the speed of study is comparatively slow, and process is complicated, if will complete on-line analysis, higher to the requirement of hardware processor.Therefore, need to find additive method and solve remaining battery capacity test problems.
Summary of the invention
The technical problem to be solved in the present invention how to detect this inside of remaining battery capacity not easily detection limit at the easy detection limit in outside by detecting accumulator by algorithm, and in original method, improve detection degree of accuracy.
In order to solve this computational problem, the present invention is based on genetic algorithm and particle swarm optimization algorithm-least square method supporting vector machine proposes a kind of remaining battery capacity detection method, it is characterized in that, comprise the steps:
S100: gather the open-circuit voltage of accumulator to be measured, environment temperature, internal resistance be some test sample books, theoretical according to least square method supporting vector machine, obtain remaining battery capacity and detect output model y = Σ i = 1 N a i K ( x , x i ) + b ;
S200: random initializtion is carried out to population in particle cluster algorithm;
S300: upgrade each particle rapidity and position with the renewal rule preset, detects a of output model to described remaining battery capacity iwith K (x, x i) in the parameter (C, σ) that comprises carry out optimizing;
S400: according to fitness function, calculates the fitness value of each particle, and described fitness function is described test sample book and detects according to described remaining battery capacity the root-mean-square error that output model calculates the predicted data obtained;
S500: the described fitness value of each particle is sorted, and 1/2nd particles selecting fitness value relatively high carry out the interlace operation of genetic algorithm;
S600: the mutation operation in genetic algorithm is carried out to particle;
S700: according to described fitness function, the fitness value of particle after recalculating genetic algorithm selection, crossover and mutation operation;
S800: according to particle fitness value in the process of current iteration optimizing, selects individual optimal value and colony's optimal value of particle, completes an iteration optimizing;
S900: compare the colony's optimal value in current iteration optimizing and the colony's optimal value retained, retain colony's optimal value that fitness value is low, judge whether to reach default iteration optimizing number of times;
If reached default iteration optimizing number of times, enter S1000 with regard to termination of iterations evolutionary operation;
If not yet reach default iteration optimizing number of times, just return S300, continue the initialization population of next iteration optimizing with selected colony's optimal value;
S1000: configure described remaining battery capacity according to the described colony optimal value retained last in optimizing result and detect output model, exports the residual capacity testing result of this accumulator to be measured according to the open-circuit voltage of accumulator to be measured, environment temperature, internal resistance.
As a kind of prioritization scheme, in described step S300, described default renewal rule is:
V i d k + 1 = ωV i d k + c 1 r 1 ( P i d k - X i d k ) + c 2 r 2 ( P g d k - X i d k )
X i d k + 1 = X i d k + V i d k + 1
Wherein, the X in particle cluster algorithm i=(x i1, x i2... x in) represent the position vector of i-th particle, and X=(C, σ), wherein C is punishment parameter, and C is included in a that described remaining battery capacity detects output model iin, σ is kernel functional parameter, and σ is included in K (x, the x that described remaining battery capacity detects output model i) in, V i=(v i1, v i2... v in) represent that the pre-set velocity of i-th particle is vectorial, P i=(p i1, p i2... p in) be described individual optimal value, P g=(p g1, p g2... p gn) be the described colony optimal value of population, ω is inertia weight, c 1, c 2for acceleration factor, r 1, r 2for the random number between 0 and 1.
As a kind of prioritization scheme, in described step S500, described interlace operation is specially speed and the position interlace operation of random two two particles in selected population, and formula is as follows:
V n e w 1 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 1 k |
V n e w 2 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 2 k |
X n e w 1 k = r a n d * X 1 k + ( 1 - r a n d ) * X 2 k
X n e w 2 k = r a n d * X 2 k + ( 1 - r a n d ) * X 1 k
Wherein with the speed of particle and position before being respectively interlace operation, with the speed of new particle and position after being respectively interlace operation.
As a kind of prioritization scheme, in described step S100, least square method supporting vector machine calculates according to described test sample book and obtains remaining battery capacity detection output model process be specially:
For the sample set that the open-circuit voltage of accumulator to be measured gathered, environment temperature, the some test sample books of internal resistance are formed u i∈ R n, r i∈ R n, t i∈ R n, input/output relation formula is
Wherein: for nuclear space mapping function; W is weight vector, has the dimension identical with nuclear space, and b is departure;
Be constructed as follows the optimized parameter optimized formula and determine in described input/output relation formula:
in formula, C is punishment parameter, the Langrange function of structure dual space:
A in formula i>=0, a ifor Langrange dual variable;
Can obtain after calculating according to the Langrange function of dual space and the condition of parameter optimization:
0 I v T I v K ( x i , x j ) + γ - 1 I b a = 0 y
Wherein
y=(y 1,y 2...y N) T;I v=(1,1...1) Τ;a=(a 1,a 2...a N) Τ
and K (x i, x j) for meeting the kernel function of mercer theorem;
Described input/output relation formula is finally converted to described remaining battery capacity and detects output model y = Σ i = 1 N a i K ( x , x i ) + b .
The present invention proposes the remaining battery capacity detection method based on genetic algorithm and particle swarm optimization algorithm-least square method supporting vector machine in, the method is based on the most basic least square method supporting vector machine, particle cluster algorithm is to wherein kernel functional parameter and penalty coefficient carry out parameter optimization in addition, improve simulation accuracy, introduce the ability of searching optimum that genetic algorithm strengthens algorithm simultaneously, prevent from being absorbed in locally optimal solution.Only needing by detecting battery open-circuit voltage, environment temperature, accumulator internal resistance these three amounts, just can detect the residual capacity of accumulator.Finally by contrast experiment's data and predicted data, find that the average error of the detection of this method can control within 5%, more traditional least square method supporting vector machine method, substantially increases precision of prediction.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of remaining battery capacity detection method in optional embodiment of the present invention;
Fig. 2 is the simulation result figure in one embodiment of the invention;
The error analysis schematic diagram that Fig. 3 (a), (b), (c) are the present invention one test data.
Embodiment
The technical problem to be solved in the present invention how to detect this inside of remaining battery capacity not easily detection limit at the easy detection limit in outside by detecting accumulator by intelligent algorithm, and improve accuracy of detection.
In order to address this problem, the present invention is based on genetic algorithm and particle swarm optimization algorithm-least square method supporting vector machine proposes a kind of remaining battery capacity detection method, it is characterized in that, comprise the steps:
S100: gather the open-circuit voltage of accumulator to be measured, environment temperature, internal resistance be some test sample books, theoretical according to least square method supporting vector machine, obtain remaining battery capacity and detect output model y = Σ i = 1 N a i K ( x , x i ) + b ;
S200: random initializtion is carried out to population in particle cluster algorithm;
S300: upgrade each particle rapidity and position with the renewal rule preset, detects a of output model to described remaining battery capacity iwith K (x, x i) in the parameter (C, σ) that comprises carry out optimizing;
S400: according to fitness function, calculates the fitness value of each particle, and described fitness function is described test sample book and detects according to described remaining battery capacity the root-mean-square error that output model calculates the predicted data obtained;
S500: the described fitness value of each particle is sorted, and 1/2nd particles selecting fitness value relatively high carry out the interlace operation of genetic algorithm;
S600: the mutation operation in genetic algorithm is carried out to particle;
S700: according to described fitness function, the fitness value of particle after recalculating genetic algorithm selection, crossover and mutation operation;
S800: according to particle fitness value in the process of current iteration optimizing, selects individual optimal value and colony's optimal value of particle, completes an iteration optimizing;
S900: compare the colony's optimal value in current iteration optimizing and the colony's optimal value retained, retain colony's optimal value that fitness value is low, judge whether to reach default iteration optimizing number of times;
If reached default iteration optimizing number of times, enter S1000 with regard to termination of iterations evolutionary operation;
If not yet reach default iteration optimizing number of times, just return S300, continue the initialization population of next iteration optimizing with selected colony's optimal value;
S1000: configure described remaining battery capacity according to the described colony optimal value retained last in optimizing result and detect output model, exports the residual capacity testing result of this accumulator to be measured according to the open-circuit voltage of accumulator to be measured, environment temperature, internal resistance.
Further, in described step S300, described default renewal rule is:
V i d k + 1 = ωV i d k + c 1 r 1 ( P i d k - X i d k ) + c 2 r 2 ( P g d k - X i d k )
X i d k + 1 = X i d k + V i d k + 1
Wherein, the X in particle cluster algorithm i=(x i1, x i2... x in) represent the position vector of i-th particle, and X=(C, σ), wherein C is punishment parameter, and C is included in a that described remaining battery capacity detects output model iin, σ is kernel functional parameter, and σ is included in K (x, the x that described remaining battery capacity detects output model i) in, V i=(v i1, v i2... v in) represent that the pre-set velocity of i-th particle is vectorial, P i=(p i1, p i2... p in) be described individual optimal value, P g=(p g1, p g2... p gn) be the described colony optimal value of population, ω is inertia weight, c 1, c 2for acceleration factor, r 1, r 2for the random number between 0 and 1.
Further, in described step S500, described interlace operation is specially speed and the position interlace operation of random two two particles in selected population, and formula is as follows:
V n e w 1 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 1 k |
V n e w 2 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 2 k |
X n e w 1 k = r a n d * X 1 k + ( 1 - r a n d ) * X 2 k
X n e w 2 k = r a n d * X 2 k + ( 1 - r a n d ) * X 1 k
Wherein with the speed of particle and position before being respectively interlace operation, with the speed of new particle and position after being respectively interlace operation.
Further, in described step S100, least square method supporting vector machine calculates according to described test sample book and obtains remaining battery capacity detection output model process be specially:
For the sample set that the open-circuit voltage of accumulator to be measured gathered, environment temperature, the some test sample books of internal resistance are formed u i∈ R n, r i∈ R n, t i∈ R n, input/output relation formula is
Wherein: for nuclear space mapping function; W is weight vector, has the dimension identical with nuclear space, and b is departure;
Be constructed as follows the optimized parameter optimized formula and determine in described input/output relation formula:
m i n w , b , e J ( w , e ) = 1 2 w T w + 1 2 C Σ i = 1 N e i 2
In formula, C is punishment parameter, the Langrange function of structure dual space:
A in formula i>=0, a ifor Langrange dual variable;
Can obtain after calculating according to the Langrange function of dual space and the condition of parameter optimization:
0 I v T I v K ( x i , x j ) + γ - 1 I b a = 0 y
Wherein
y=(y 1,y 2...y N) T;I v=(1,1...1) Τ;a=(a 1,a 2...a N) Τ
and K (x i, x j) for meeting the kernel function of mercer theorem;
Described input/output relation formula is finally converted to described remaining battery capacity and detects output model y = Σ i = 1 N a i K ( x , x i ) + b .
Below describe to have done and expand explanation more specifically, and the process of calculating has been brought in the flow process of method.
Above-mentioned steps specifically comprises the steps:
S1: the detection limit choosing remaining battery capacity.Because accumulator is as a closed system, residual capacity is measured as inside, can not directly be obtained by measurement means, needs indirectly to be calculated by outside relevant characterization amount to obtain.
Battery open-circuit voltage and remaining battery capacity have Linearity preferably; Environment temperature also has residual capacity comparatively significantly to be affected; Accumulator internal resistance and residual capacity in certain residual capacity scope internal linear better, therefore select battery open-circuit voltage, environment temperature and internal resistance three as detection limit.
S2: adopt least square method supporting vector machine to carry out Residual capacity prediction for battery, only need experimentally measured data to carry out the training of model, just can carry out the prediction of residual capacity according to the model trained.
LSSVM (least square method supporting vector machine) algorithm is as follows:
For sample set u i∈ R n, R i∈ R n, T i∈ R n, wherein, U is the open-circuit voltage of accumulator to be measured, and T is environment temperature, and R is the internal resistance of accumulator to be measured.According to the basic theories of least square method supporting vector machine, the nonlinear relationship between input and output can be described as
Wherein: for nuclear space mapping function; W is weight vector, has the dimension identical with nuclear space; B is departure.For determining the optimized parameter in input/output relation formula, be constructed as follows optimization problem:
In formula, C is punishment parameter.For solving above-mentioned optimization problem, the Langrange function of structure dual space:
A in formula i>=0, a ibe called Langrange dual variable.
Condition according to parameter optimization can obtain:
Cancellation above formula w, e, can obtain system of equations:
0 I v T I v K ( x i , x j ) + γ - 1 I b a = 0 y - - - ( 6 )
Wherein
y=(y 1,y 2...y N) T;I v=(1,1...1) Τ;a=(a 1,a 2...a N) Τ
and K (x i, x j) for meeting the kernel function of mercer theorem.
The relation that the introducing of kernel function makes formula (1) describe is converted to
y = Σ i = 1 N a i K ( x , x i ) + b - - - ( 7 )
Now only need solve linear equations formula (6), just can obtain the parameter of the described model of formula (7).And usually can being solved by conjugate gradient iteration of system of linear equations.
When LSSVM is used for Residual capacity prediction for battery, after comprehensively analyzing the remaining various influence factor of accumulator, select battery open-circuit voltage, temperature and internal resistance value as input quantity, remaining battery capacity is as output quantity.So just, can detect by the residual capacity that LSSVM realizes accumulator.
Here it should be noted that, the least square method supporting vector machine function simlssvm in MATLAB can achieve the most basic sample training and forecast function, therefore directly can use the simlssvm function in MATLAB when calculating.
S3: the theoretical and simulation analysis according to support vector machine, kernel functional parameter and punishment parameter affect very large on simulation accuracy.Traditional grid-search algorithms not only length consuming time and there is certain subjective blindness.Herein adopt particle swarm optimization algorithm to punishment parameter and kernel functional parameter carry out parameter optimization, improve to a certain extent simulation accuracy decrease simultaneously emulation consuming time.
Particle swarm optimization algorithm (ParticleSwarmOptimization, PSO) is the Swarm Intelligence Algorithm that a kind of structure is simple, parameter is few.X in particle cluster algorithm i=(x i1, x i2... x in) represent the position vector of i-th particle, V i=(v i1, v i2... v in) represent the velocity vector of i-th particle, P i=(p i1, p i2... p in) be individual optimal value, P g=(p g1, p g2... p gn) be the global optimum of population.Particle upgrades speed and the position of self by individual optimal value and global optimum, and more new formula is as follows:
V i d k + 1 = ωV i d k + c 1 r 1 ( P i d k - X i d k ) + c 2 r 2 ( P g d k - X i d k ) X i d k + 1 = X i d k + V i d k + 1 - - - ( 8 ) , ( 9 )
In formula, ω is inertia weight, c 1, c 2for nonnegative constant, be called acceleration factor; r 1, r 2for the random number between 0 and 1, X=(C, σ), wherein C is punishment parameter, and C is included in a that described remaining battery capacity detects output model iin, σ is kernel functional parameter, and σ is included in K (x, the x that described remaining battery capacity detects output model i) in.
When being optimized for least square method supporting vector machine, basic thought finds the parameter (C, σ) of one group of optimum to make objective function minimum by iteration optimizing, and wherein C is punishment parameter, and σ is kernel functional parameter.Position and the velocity vector of getting particle are argument sequence (C, σ), with the root-mean-square error of simulation and prediction data and actual test data for fitness function.Be finally that optimized parameter carries out model and forecast to LSSVM model with the argument sequence making fitness function minimum.
S4: particle cluster algorithm has parameter few, algorithm is simple, the advantages such as versatility is stronger, and also there is later stage iteration efficiency low, the problems such as Premature Convergence, particularly when running into the optimization problem that there is complicated solution space, are easily absorbed in locally optimal solution simultaneously.Compared with particle swarm optimization algorithm, genetic algorithm (GeneticAlgorithm-GA) has make a variation more widely ability and search capability compared with particle swarm optimization algorithm, particularly in ability of searching optimum, has high efficiency.The present invention proposes and introduce genetic algorithm in particle cluster algorithm, use for reference the operations such as the intersection of genetic algorithm, selection and variation, both are had complementary advantages in the overall situation and local search ability, and simulation analysis shows, GAPSO algorithm simulating precision proposed by the invention is significantly improved.
Genetic algorithm is the computation model of the simulation natural selection of Darwinian evolutionism and a kind of biological evolution process of Genetic Mechanisms, is a kind of optimized algorithm of simulating nature evolutionary process.Genetic algorithm is from arbitrary initial population, use for reference the selection of occurring in nature, crossover and mutation operation, produce a new population, new population is to the adaptability of environment has had a better fitness, along with constantly the carrying out of population colonization, Evolution of Population is to the better optimum population of environmental adaptation degree, has namely tried to achieve the optimum solution of problem.
Implementation procedure for the operatings of genetic algorithm operator of PSO-LSSVM is as follows:
A. the realization of selection opertor
Selection operation is carried out to particle, according to the particle fitness of PSO algorithm select fitness value lower two/tap into into operation of future generation always, so just maintain the improved seeds of particle, more easily obtain globally optimal solution.
B. the realization of mutation operator
Use for reference biological natural hereditary variation principle, crossover operator simulates the gene mutation in biological evolution process, performs variation, obtain new individuality with certain 1/2nd probability to original some individual gene.
C. the realization of crossover operator
Two individualities are selected, with certain crossover probability P in the population that the fitness selected after selection opertor operation is poor cthe gene of the random identical position to them is carried out and is exchanged.Information exchanging process in crossing operation operant response biological evolution process, its object is exactly to produce new gene and individuality.
And new individual gene is intersected by original two individualities participating in variation and forms.Concrete for speed individual in PSO and location updating formula is:
V n e w 1 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 1 k |
V n e w 2 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 2 k |
X n e w 1 k = r a n d * X 1 k + ( 1 - r a n d ) * X 2 k
X n e w 2 k = r a n d * X 2 k + ( 1 - r a n d ) * X 1 k
Wherein with the speed of particle and position before being respectively interlace operation, with the speed of new particle and position after being respectively interlace operation.
S5: according to the model obtained after parameter optimization, can carry out the detection of remaining battery capacity.
Detection algorithm is by MATLAB programming realization.
In order to verify the validity of particle cluster algorithm and the algorithm based on GAPSO-LSSVM, the present invention builds simulated program and verifies in MATLAB.With the input that battery open-circuit voltage, environment temperature and accumulator internal resistance are simulated program in experimental data, the residual capacity of accumulator is for exporting.Data are totally 124 groups of data, and wherein 100 groups for training built model, remaining 24 groups as test data, detect precision of prediction.
With the root-mean-square error (root-mean-squareerror, RMSE) of test data and measured data for fitness function.
The errors table of table 1 simulation algorithm:
The errors table of table 1 simulation algorithm
Simulation algorithm Largest percentage error Mean percent ratio error Root-mean-square error
LSSVM 22.7% 5.6% 0.0384
PSO-LSSVM 14.4% 3.2% 0.0200
GAPSO-LSSVM 9.9% 2.7% 0.0147
The theory that the present invention is based on genetic algorithm and particle swarm optimization algorithm-least square method supporting vector machine proposes a kind of remaining battery capacity detection method, the method is based on the most basic least square method supporting vector machine, particle cluster algorithm is to wherein kernel functional parameter and penalty coefficient carry out parameter optimization in addition, improve simulation accuracy, introduce the ability of searching optimum that genetic algorithm strengthens algorithm simultaneously, prevent from being absorbed in locally optimal solution.Only needing by detecting battery open-circuit voltage, environment temperature, accumulator internal resistance these three amounts, just can detect the residual capacity of accumulator.Finally by contrast experiment's data and predicted data, the average error of the detection of this method can control within 5%, and more traditional least square method supporting vector machine method, substantially increases precision of prediction.Fig. 2 is the simulation result figure in one embodiment of the invention, and the curve formed with actual measured value that predicts the outcome as seen overlaps substantially completely, and the present invention has higher degree of accuracy.Fig. 3 (a), (b), c () is the error analysis schematic diagram of the present invention one test data, by Fig. 3 (a), (b), (c) known LSSVM, PSO-LSSVM, three's model prediction data of GAPSO-LSSVM algorithm and the relative error analysis situation of experimental data, the root-mean-square error of associative list 1 simulation algorithm is known simultaneously, contrast PSO-LSSVM and LSSVM algorithm, PSO-LSSVM graph of errors fluctuation after particle cluster algorithm optimization obviously diminishes, largest percentage error drops to 14.4% by 22.7%, mean percent ratio error drops to 3.2% by 5.6%, root-mean-square error drops to 0.0200 by 0.0384, effect of optimization is obvious, simulation accuracy significantly improves, after further introducing genetic algorithm, the every error criterion of error obviously reduces further.Relatively GAPSO-LSSVM algorithm and traditional LSSVM algorithm, largest percentage error is dropped to 9.9% by initial 22.7% by proposed GAPSO-LSSVM algorithm; Mean percent ratio error drops to 2.7% by 5.6%, and root-mean-square error is reduced to 0.0147 by 0.0384, and every error criterion is all reduced over half, and algorithm improvement is quite obvious.
The present invention emulates case and just sets forth the present invention for helping.Emulation case does not have all details of detailed descriptionthe, does not limit the embodiment that this invention is only described yet.Obviously, according to the content of this instructions, can make many modifications and variations.This instructions is chosen and is specifically described these embodiments, is to explain principle of the present invention and practical application better, thus makes art technician can utilize the present invention well.The present invention is only subject to the restriction of claims and four corner and equivalent.

Claims (4)

1. a remaining battery capacity detection method, is characterized in that, comprises the steps:
S100: gather the open-circuit voltage of accumulator to be measured, environment temperature, internal resistance be some test sample books, theoretical according to least square method supporting vector machine, obtain remaining battery capacity and detect output model y = Σ i = 1 N a i K ( x , x i ) + b ;
S200: random initializtion is carried out to population in particle cluster algorithm;
S300: upgrade each particle rapidity and position with the renewal rule preset, detects a of output model to described remaining battery capacity iwith K (x, x i) in the parameter (C, σ) that comprises carry out optimizing;
S400: according to fitness function, calculates the fitness value of each particle, and described fitness function is described test sample book and detects according to described remaining battery capacity the root-mean-square error that output model calculates the predicted data obtained;
S500: the described fitness value of each particle is sorted, and 1/2nd particles selecting fitness value relatively high carry out the interlace operation of genetic algorithm; S600: the mutation operation in genetic algorithm is carried out to particle;
S700: according to described fitness function, the fitness value of particle after recalculating genetic algorithm selection, crossover and mutation operation;
S800: according to particle fitness value in the process of current iteration optimizing, selects individual optimal value and colony's optimal value of particle, completes an iteration optimizing;
S900: compare the colony's optimal value in current iteration optimizing and the colony's optimal value retained, retain colony's optimal value that fitness value is low, judge whether to reach default iteration optimizing number of times;
If reached default iteration optimizing number of times, enter S1000 with regard to termination of iterations evolutionary operation;
If not yet reach default iteration optimizing number of times, just return S300, continue the initialization population of next iteration optimizing with selected colony's optimal value;
S1000: configure described remaining battery capacity according to the described colony optimal value retained last in optimizing result and detect output model, exports the residual capacity testing result of this accumulator to be measured according to the open-circuit voltage of accumulator to be measured, environment temperature, internal resistance.
2. a kind of remaining battery capacity detection method as claimed in claim 1, is characterized in that, in described step S300, described default renewal rule is:
V i d k + 1 = ωV i d k + c 1 r 1 ( P i d k - X i d k ) + c 2 r 2 ( P g d k - X i d k )
X i d k + 1 = X i d k + V i d k + 1
Wherein, the X in particle cluster algorithm i=(x i1, x i2... x in) represent the position vector of i-th particle, and X=(C, σ), wherein C is punishment parameter, and C is included in a that described remaining battery capacity detects output model iin, σ is kernel functional parameter, and σ is included in K (x, the x that described remaining battery capacity detects output model i) in, V i=(v i1, v i2... v in) represent that the pre-set velocity of i-th particle is vectorial, P i=(p i1, p i2... p in) be described individual optimal value, P g=(p g1, p g2... p gn) be the described colony optimal value of population, ω is inertia weight, c 1, c 2for acceleration factor, r 1, r 2for the random number between 0 and 1.
3. a kind of remaining battery capacity detection method as claimed in claim 1 or 2, is characterized in that, in described step S500, described interlace operation is specially speed and the position interlace operation of random two two particles in selected population, and formula is as follows:
V n e w 1 k = V 1 k + V 2 k | V 1 k | + | V 2 k | | V 1 k |
V n e w 2 k V 1 k + V 2 k | V 1 k | + | V 2 k | | V 2 k |
X e n w 1 k = r a n d * X 1 k + ( 1 - r a n d ) * X 2 k
X n e w 2 k = r a n d * X 2 k + ( 1 - r a n d ) * X 1 k
Wherein with the speed of particle and position before being respectively interlace operation, with the speed of new particle and position after being respectively interlace operation.
4. a kind of remaining battery capacity detection method as claimed in claim 1, is characterized in that, in described step S100, least square method supporting vector machine calculates according to described test sample book and obtains remaining battery capacity detection output model process be specially:
For the sample set that the open-circuit voltage of accumulator to be measured gathered, environment temperature, the some test sample books of internal resistance are formed u i∈ R n, r i∈ R n, t i∈ R n, input/output relation formula is
Wherein: for nuclear space mapping function; W is weight vector, has the dimension identical with nuclear space, and b is departure;
Be constructed as follows the optimized parameter optimized formula and determine in described input/output relation formula:
min w , b , e J ( w , e ) = 1 2 w T w + 1 2 C Σ i = 1 N e i 2
In formula, C is punishment parameter, the Langrange function of structure dual space:
A in formula i>=0, a ifor Langrange dual variable;
Can obtain after calculating according to the Langrange function of dual space and the condition of parameter optimization:
0 I v T I v K ( x i , x j ) + γ - 1 I b a = 0 y
Wherein
y=(y 1,y 2...y N) T;I v=(1,1...1) Τ;a=(a 1,a 2...a N) Τ
and K (x i, x j) for meeting the kernel function of mercer theorem;
Described input/output relation formula is finally converted to described remaining battery capacity and detects output model y = Σ i = 1 N a i K ( x , x i ) + b .
CN201510846238.0A 2015-11-27 2015-11-27 Storage battery surplus capacity detection method Pending CN105574231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510846238.0A CN105574231A (en) 2015-11-27 2015-11-27 Storage battery surplus capacity detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510846238.0A CN105574231A (en) 2015-11-27 2015-11-27 Storage battery surplus capacity detection method

Publications (1)

Publication Number Publication Date
CN105574231A true CN105574231A (en) 2016-05-11

Family

ID=55884361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510846238.0A Pending CN105574231A (en) 2015-11-27 2015-11-27 Storage battery surplus capacity detection method

Country Status (1)

Country Link
CN (1) CN105574231A (en)

Cited By (12)

* 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
WO2018072351A1 (en) * 2016-10-20 2018-04-26 北京工业大学 Method for optimizing support vector machine on basis of particle swarm optimization algorithm
CN109738825A (en) * 2018-12-27 2019-05-10 上海毅信环保科技有限公司 Retired battery active volume and internal resistance detection method and device based on historical data
CN110197250A (en) * 2019-05-23 2019-09-03 合肥工业大学智能制造技术研究院 A kind of power battery on-line parameter identification method of multifactor impact
CN110298467A (en) * 2018-03-23 2019-10-01 中国科学院微电子研究所 A kind of estimation method and system of remaining capacity
CN110378461A (en) * 2019-06-14 2019-10-25 上海交通大学 Error self-adaptation control method and system based on space-time error separate
CN110794319A (en) * 2019-11-12 2020-02-14 河南工学院 Method and device for predicting parameters of lithium battery impedance model and readable storage medium
CN111983465A (en) * 2020-08-24 2020-11-24 深圳市加码能源科技有限公司 Electric vehicle charging safety protection method based on residual electric quantity estimation
CN112782588A (en) * 2020-12-30 2021-05-11 深圳市加码能源科技有限公司 SOC online monitoring method based on LSSVM and storage medium thereof
CN113495214A (en) * 2021-05-25 2021-10-12 四川轻化工大学 Super capacitor charge state estimation method based on temperature change model
CN113591301A (en) * 2021-07-28 2021-11-02 广西大学 Urban rail transit train operation parameter optimization algorithm
CN117555287A (en) * 2024-01-12 2024-02-13 中国机械总院集团云南分院有限公司 CAE-based numerical control machine tool machining dynamic performance monitoring method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693451A (en) * 2012-06-14 2012-09-26 东北电力大学 Method for predicting ammonia process flue gas desulphurization efficiency based on multiple parameters
CN104951834A (en) * 2015-06-24 2015-09-30 上海大学 LSSVM (least squares support vector machine) wind speed forecasting method based on integration of GA (genetic algorithm) and PSO (particle swarm optimization)
CN104951803A (en) * 2015-06-24 2015-09-30 大连理工大学 Soft measurement method applied to dry point of aviation kerosene of atmospheric-pressure distillation tower and based on dynamic moving window LSSVM (least squares support vector machine)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693451A (en) * 2012-06-14 2012-09-26 东北电力大学 Method for predicting ammonia process flue gas desulphurization efficiency based on multiple parameters
CN104951834A (en) * 2015-06-24 2015-09-30 上海大学 LSSVM (least squares support vector machine) wind speed forecasting method based on integration of GA (genetic algorithm) and PSO (particle swarm optimization)
CN104951803A (en) * 2015-06-24 2015-09-30 大连理工大学 Soft measurement method applied to dry point of aviation kerosene of atmospheric-pressure distillation tower and based on dynamic moving window LSSVM (least squares support vector machine)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018072351A1 (en) * 2016-10-20 2018-04-26 北京工业大学 Method for optimizing support vector machine on basis of particle swarm optimization algorithm
CN106682788A (en) * 2017-01-09 2017-05-17 郑州云海信息技术有限公司 Method and device for selection sequence determination
CN110298467A (en) * 2018-03-23 2019-10-01 中国科学院微电子研究所 A kind of estimation method and system of remaining capacity
CN109738825B (en) * 2018-12-27 2021-01-01 上海毅信环保科技有限公司 Method and device for detecting available capacity and internal resistance of retired battery based on historical data
CN109738825A (en) * 2018-12-27 2019-05-10 上海毅信环保科技有限公司 Retired battery active volume and internal resistance detection method and device based on historical data
CN110197250A (en) * 2019-05-23 2019-09-03 合肥工业大学智能制造技术研究院 A kind of power battery on-line parameter identification method of multifactor impact
CN110378461A (en) * 2019-06-14 2019-10-25 上海交通大学 Error self-adaptation control method and system based on space-time error separate
CN110794319A (en) * 2019-11-12 2020-02-14 河南工学院 Method and device for predicting parameters of lithium battery impedance model and readable storage medium
CN111983465B (en) * 2020-08-24 2022-07-19 深圳市加码能源科技有限公司 Electric vehicle charging safety protection method based on residual electric quantity estimation
CN111983465A (en) * 2020-08-24 2020-11-24 深圳市加码能源科技有限公司 Electric vehicle charging safety protection method based on residual electric quantity estimation
CN112782588B (en) * 2020-12-30 2023-02-17 深圳市加码能源科技有限公司 SOC online monitoring method based on LSSVM and storage medium thereof
CN112782588A (en) * 2020-12-30 2021-05-11 深圳市加码能源科技有限公司 SOC online monitoring method based on LSSVM and storage medium thereof
CN113495214A (en) * 2021-05-25 2021-10-12 四川轻化工大学 Super capacitor charge state estimation method based on temperature change model
CN113495214B (en) * 2021-05-25 2023-07-07 四川轻化工大学 Super-capacitor state-of-charge estimation method based on temperature change model
CN113591301A (en) * 2021-07-28 2021-11-02 广西大学 Urban rail transit train operation parameter optimization algorithm
CN113591301B (en) * 2021-07-28 2023-12-08 广西大学 Urban rail transit train operation parameter optimization algorithm
CN117555287A (en) * 2024-01-12 2024-02-13 中国机械总院集团云南分院有限公司 CAE-based numerical control machine tool machining dynamic performance monitoring method and system
CN117555287B (en) * 2024-01-12 2024-04-09 中国机械总院集团云南分院有限公司 CAE-based numerical control machine tool machining dynamic performance monitoring method and system

Similar Documents

Publication Publication Date Title
CN105574231A (en) Storage battery surplus capacity detection method
CN109931678B (en) Air conditioner fault diagnosis method based on deep learning LSTM
CN110568359B (en) Lithium battery residual life prediction method
CN107688825B (en) Improved integrated weighted extreme learning machine sewage treatment fault diagnosis method
CN106055775B (en) A kind of service life of secondary cell prediction technique that particle filter is combined with mechanism model
Zhang et al. Intelligent state of charge estimation of lithium-ion batteries based on LM optimized back-propagation neural network
CN108846227B (en) Lithium ion battery capacity degradation prediction and evaluation method based on random forest and capacity self-recovery effect analysis
CN107870306A (en) A kind of lithium battery charge state prediction algorithm based under deep neural network
Yang et al. Battery states online estimation based on exponential decay particle swarm optimization and proportional-integral observer with a hybrid battery model
CN105260786B (en) A kind of simulation credibility of electric propulsion system assessment models comprehensive optimization method
CN104182630A (en) Residual battery capacity detection method based on simplified least square support vector machine
Lipu et al. Real-time state of charge estimation of lithium-ion batteries using optimized random forest regression algorithm
CN103336867B (en) Proton Exchange Membrane Fuel Cells model optimization disposal route
Shaheen et al. Optimal parameter identification of linear and non-linear models for Li-Ion Battery Cells
Zhang et al. Intelligent state of charge estimation of battery pack based on particle swarm optimization algorithm improved radical basis function neural network
CN113702843B (en) Lithium battery parameter identification and SOC estimation method based on suburb optimization algorithm
Chang et al. A probabilistic approach for prognosis of battery pack aging
CN113109717B (en) Lithium battery state of charge estimation method based on characteristic curve optimization
Anton et al. A new predictive model for the state-of-charge of a high-power lithium-ion cell based on a PSO-optimized multivariate adaptive regression spline approach
CN112630659A (en) Lithium battery SOC estimation method based on improved BP-EKF algorithm
CN113125960A (en) Vehicle-mounted lithium ion battery charge state prediction method based on random forest model
Khayat et al. Adaptive techniques used for lifetime estimation of lithium-ion batteries
CN111337833B (en) Lithium battery capacity integrated prediction method based on dynamic time-varying weight
CN113312807B (en) Electrolyte formula recommendation method based on lithium battery performance simulation environment
CN113376541B (en) Lithium ion battery health state prediction method based on CRJ network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

RJ01 Rejection of invention patent application after publication