CN113836706A - Numerical control machining parameter optimization method and storage medium - Google Patents

Numerical control machining parameter optimization method and storage medium Download PDF

Info

Publication number
CN113836706A
CN113836706A CN202111042440.XA CN202111042440A CN113836706A CN 113836706 A CN113836706 A CN 113836706A CN 202111042440 A CN202111042440 A CN 202111042440A CN 113836706 A CN113836706 A CN 113836706A
Authority
CN
China
Prior art keywords
chain
orthogonal
new
numerical control
cos
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
CN202111042440.XA
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.)
Southwest Forestry University
Original Assignee
Southwest Forestry 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 Southwest Forestry University filed Critical Southwest Forestry University
Priority to CN202111042440.XA priority Critical patent/CN113836706A/en
Publication of CN113836706A publication Critical patent/CN113836706A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/04Ageing analysis or optimisation against ageing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2119/00Details relating to the type or aim of the analysis or the optimisation
    • G06F2119/08Thermal analysis or thermal optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Evolutionary Computation (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Pure & Applied Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Biophysics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Operations Research (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Algebra (AREA)
  • Computational Linguistics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention discloses a numerical control machining parameter optimization method and a storage medium, and belongs to the field of numerical control workpiece machining parameter optimization. The method comprises the steps of constructing an applicability function according to a workpiece processing optimization model with constraint conditions, solving by using an orthogonal double-chain differential evolution algorithm, carrying out optimal solution search through a population of orthogonal double chains, producing filial chains after orthogonal chain cross variation, carrying out orthogonal double-chain updating by adopting 3 strategies of orthogonal double-chain search tending to a global optimal solution, orthogonal double-chain search tending to the filial chains and global search with the global optimal solution as a center, enhancing the global search capability of a classical differential evolution algorithm and accelerating the convergence speed, thereby obtaining the optimal numerical control processing parameter solution set and the adaptability value. The invention takes the actual processing cost, the cost required by workpiece loading and unloading operation and cutter idle running, the tool changing operation cost, the cutter abrasion cost, and the cutting depth of each pass of rough machining and finish machining as optimization targets, and is suitable for common numerical control processing parameter optimization.

Description

Numerical control machining parameter optimization method and storage medium
Technical Field
The invention relates to a numerical control machining parameter optimization method and a storage medium, in particular to a numerical control machining parameter optimization method and a computer program product based on an orthogonal double-chain differential evolution algorithm with consideration of global search and local search strategies, and belongs to the technical field of numerical control workpiece machining parameter optimization and group intelligent optimization.
Background
Numerical control processing is used as a basic industry of manufacturing industry, and becomes an important way for accelerating economic development and improving comprehensive national strength and position of countries in the world, and occupies a main position in the contemporary industrial system of China. The main purpose of researching the machining parameters is to produce workpieces with low cost and high quality, the machining cost can be reduced by proper cutting parameters, the machining efficiency and the machining quality are improved to improve the economic benefit, and popularization and application of the work can provide more convenience for manufacturing enterprises to quickly respond to the market. At present, the numerical control processing enterprises in China still have the current situation that data control parameters are selected through experiments by means of experience and reference manuals, and the optimization of numerical control parameters is difficult to realize. The invention relates to an optimization problem of numerical control machining parameters, namely how to select proper machining parameters under a given machining constraint condition to achieve the minimum machining cost.
The early methods for optimizing numerical control machining parameters mainly comprise two methods: the first is a test method, such as factor design and a corresponding curved surface method; and secondly, a mathematical processing method such as dynamic programming and linear or nonlinear programming algorithm is used for seeking the optimal solution of the problem, however, a large number of processing parameter optimization problems are complex problems of multi-constraint nonlinearity, and the optimal solution is difficult to obtain by using the traditional mathematical processing method. With the rapid development of meta-heuristic algorithms, many scholars apply the meta-heuristic algorithms to the processing parameter optimization problem in the field of computer integrated manufacturing and search the near-optimal solution of the problem by using the meta-heuristic algorithms. At present, genetic algorithms, particle swarm algorithms, ant colony algorithms and the like related to the prior art documents as described below are adopted in many cases:
(a)Chen,M.and K.Chen,Optimization of multipass turning operations with genetic algorithms:A note[J].International Journal of Production Research,2010.41(14):p.3385-3388.
(b)Chen,M.C.and D.M.TSAI,A simulated annealing approach for optimization of multi-pass turning operations[J].International Journal of Production Research,2007.34(10):p.2803-2825.
(c)Sankar R S,Asokan P,Saravanan R,et al.Selection of machining parameters for constrained machining problem using evolutionary computation[J].The International Journal of Advanced Manufacturing Technology,2007,32(9-10):892-901.
(d)Srinivas J,Giri R,Yang S H.Optimization of multi-pass turning using particle swarm intelligence[J].International Journal of Advanced Manufacturing Technology,2009,40(1-2):56-66.
(e) lie xinpeng, improved artificial bee colony algorithm and application thereof in the cutting parameter optimization problem research [ D ] science and technology university in china, 2013.
However, the above documents have a dilemma that the meta-heuristic algorithm falls into local optimum in the process of finding a solution.
Disclosure of Invention
In order to solve the above problems, the present invention aims to provide a method and a storage medium for optimizing numerical control machining parameters, which aims to solve the problems of resource waste, low optimization efficiency and low precision in the actual numerical control machining process due to the unreasonable selection of numerical control machining parameters. Specifically, the invention uses the orthogonal double chains to realize the global search and local search strategies, uses the orthogonal chain crossing strategy to perfect the differential evolution structure, solves the problem of local optimum trapping existing in the traditional differential evolution algorithm, effectively avoids local optimum trapping, improves the accuracy and accelerates the convergence speed.
The invention achieves the aim through the following technical scheme:
a numerical control machining parameter optimization method comprises the following steps:
step 1, establishing a target evaluation function with the minimum unit cost in the numerical control machining process, determining a target to be optimized and a machining constraint condition, and determining a parameter optimization model of the numerical control machining according to the target evaluation function and the machining constraint condition;
and 2, constructing a fitness function according to the numerical control machining parameter optimization model, and solving the parameter optimization model by adopting an orthogonal double-chain differential evolution algorithm to obtain an optimal parameter set and a corresponding fitness value.
Further, the orthogonal double-strand differential evolution algorithm comprises the following steps:
(1) based on the initial population X, the population of particles is initialized with an orthogonal double-stranded structure, which is sine double-stranded X _ sin1 and X _ sin2 generated with sine and cosine double-stranded X _ cos1 and X _ cos2 generated with cosine. X1orth _ chain population orthogonal chain 1 is formed by X _ sin1 and X _ cos 1; x2orth _ chain orthogonal chain 2 is formed by X _ sin2 and X _ cos2, and a group orthogonal double chain is formed by Xlorth _ chain and X2orth _ chain;
(2) calculating the fitness value of each individual in the orthogonal double-stranded population; preferentially evolving the sine double-chain into a sine chain X _ sin according to the fitness value with the constraint condition meeting the mark ismETAll; in the same way, the optimized cosine double chains form cosine chains X _ cos. Forming an optimized population orthogonal chain Xorth _ chain by X _ sin and X _ cos;
(3) using the orthogonal cross strategy based on Xorth_chainCompleting the crossover to generate a filial chain XnewUpdating the offspring chain after mutation; at the same time, the optimal solution X of the current iteration is updatedlocal_bestOptimization with current iterationFitness value JX_local_best
(4) According to the current iteration optimal fitness value Jx_local_bestAnd global optimum fitness value JXbestDetermining an orthogonal chain search strategy; according to the global optimum solution XbestAnd the child chain XnewUpdating the population orthogonal double chains; at the same time, the global optimal solution X is updatedbestAnd global optimum fitness value JXbest(ii) a Judging whether a termination condition is reached, if so, outputting a result; otherwise, repeating the steps (2) to (4) to continue solving.
Further, the parameters of the differential evolution algorithm of the orthogonal double chains include: the maximum iteration number Gen, the number Np of differential population particles and the dimension Dim of numerical control machining parameters of the differential population particles, an orthogonal chain crossing factor CR, a differential variation factor F and a continuous trapping Local optimum number threshold Trap _ Local _ times.
Further, the initialization of the orthogonal double strand is: randomly generating a population of offspring X in solution space, i.e.
X∈{xd i,g/d=1,2,...,Dim;g=1,2,...,Gen;i=1,2,...,Np}
xd i,gRepresenting the d-dimension individual solution of the ith particle of the g generation;
generating sine double-strand X _ sin and cosine double-strand X _ cos from X, i.e.
X_sin={X_sin1=Xbd·sin(X);X_sin2=-Xbd·sin(X)},
X_cos={X_cos1=Xbd·cos(X);X_cos2=-Xbd·cos(X)},
XbdIs a search space boundary value;
construction of the orthogonal duplexes: x1orth_chain={X_sin1,X_cos1},X2orth_chain={X_sin2,X_cos2}。
Further, calculating the fitness value of each particle band constraint condition in the orthogonal double chains; the sine chain x _ sin and the cosine chain y _ cos are preferably selected according to the fitness value, i.e.
X_sini,g=argbest{Jx_sin1 i,g,Jx_sin2 i,g/i=1,2,...,Np;g=1,2,...,Gen}
X_cosi,g=argbest{Jx_cos1 i,g,Jx_cos2 i,g/i=1,2,...,Np;g=1,2,...,Gen}
Jx_sin1 i,gRepresents the fitness value of the ith generation of the ith particle of the sine chain x _ sin 1;
Jx_sin2 i,grepresents the fitness value of the ith generation of the ith particle of the sine chain x _ sin 2;
Jx_cos1 i,grepresents the fitness value of the ith generation of the ith particle of the cosine chain x _ cos 1;
Jx_cos2 i,grepresents the fitness value of the ith generation of the cosine chain x _ cos 2.
Preferred for argbest are: (1) jx 'satisfying all constraints is better than Jx' not satisfying all constraints;
(2) when the same constraint condition is satisfied (fully satisfied or not satisfied), argbest is argmin.
Further, the objective function and the constraint condition are simultaneously integrated into a fitness function:
Figure BDA0003249862380000041
wherein f (x) is an optimized objective function, Gi(x) And Hj(x) Penalty functions, r, corresponding to inequality and equality constraints, respectivelyiAnd sjCorresponding penalty factors. For solutions satisfying all constraints, Gi(x) And Hj(x) Is 0, so that Φ (X) ═ f (X). For infeasible solutions, their fitness value is increased by a penalty function.
Further, a flag variable isMeetAll is introduced, the value of the fitness function is calculated, when all constraint conditions are met, the value of the flag variable isMeetAll is 1, otherwise, the value of the flag variable isMeetAll is 0.
Further, orthogonal chain crossing is carried out according to random probability to generate new filial generationGroup XnewIs shown as
Figure BDA0003249862380000042
CRrandIs cross probability random number, ranging from 0-1, DimrandIs a dimension random number and ranges from 1 to Dim.
Further, according to the change of the optimal fitness value with the flag quantity isMeetAll, determining that the orthogonal chain search strategy updates the orthogonal double chains, namely:
an applicability value of isomeetall ═ 1 is better than an applicability value of isomeetall ═ 0;
if the optimal fitness value J of the current iterationX_local_bestIs better or less than the global fitness value JXbestWhen using XnewTrend to global optimal solution XbestPartial search strategy 1, updating the orthogonal double strand, i.e.
X_sin1=(Xbest+sin((Xnew-Xbest)/abs(Xbd-Xbew))·Xbd·α)/2
X_sin2=(Xbest-sin((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_cos1=(Xbest+cos((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_cos2=(Xbest+cos((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
α=power(2,timeseff)
timeseffCounting for significant iterations, i.e. successive occurrences of JX_local_bestIs better than or less than JXbestNumber of times of
At the same time, the global optimal solution X is updatedbestGlobal optimum fitness value JXbestAnd timeseff
If JX_local_best=JXbestAnd timestrapIf < Trap _ Local _ times, X is usedbestTrend towards XnewPartial search strategy 2, updating the orthogonal double strand, i.e.
X_sin1=(Xbest/timestrap+sin((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_sin2=(Xbest/timestrap-sin((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_cos1=(Xbest/timestrap+cos((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_cos2=(Xbest/timestrap-cos((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
α=power(2,timeseff)
timestrapFor successive trapping in locally optimum statistical times, i.e. successive occurrence of JX_local_best=JXbestThe number of times.
Update timestrap
If JX_local_best=JXbestAnd timestrapWhen Trap _ Local _ times, an orthogonal double-chain global search strategy taking a global optimal solution as a center is adopted to update the orthogonal double-chain, namely the orthogonal double-chain is updated
X_sin1=Xbest+Xbd·sin(θ)
X_sin2=Xbest-Xbd·sin(θ)
X_cos1=Xbest+Xbd·cos(θ)
X_cos2=Xbest-Xbd·cos(θ)
Theta is a random number and has a value in the range of 0-2 pi, i.e., theta is { theta ═ theta }d i/i=1,2,...Np;d=1,2,...,Dim}
timestrapAnd timeseffCarry out initializationAnd (4) setting.
Iteration is carried out through the searching strategy, and once the end condition of the algorithm is reached, the result and the fitness value of the final numerical control machining parameter optimization are output.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the numerical control machining parameter optimization method as described above.
Compared with the prior art, the invention has the beneficial effects that:
(1) according to the actual situation of the numerical control machining process, according to the model with the minimum unit cost of actual workpiece machining as the optimization target, the model is solved by adopting an orthogonal double-chain differential evolution algorithm, the optimal solution search is carried out on the population of the orthogonal double chains, the filial chains are produced after the orthogonal chains are subjected to cross variation, and the orthogonal double-chain search tending to the global optimal solution, the orthogonal double-chain search tending to the filial chains and the global search centering on the global optimal solution are adopted to implement orthogonal double-chain updating, so that the global search capability of the original differential algorithm is enhanced, the convergence speed is accelerated, the understanding precision is improved, a penalty function is added, and the global optimal solution is finally obtained.
(2) The method is suitable for the characteristics of nonlinearity, multiple extreme values, multiple targets and multiple constraints of a numerical control workpiece processing optimization model.
(3) The invention achieves a certain height on the precision of solving the problem of optimization of numerical control workpiece processing, reduces the actual processing cost and realizes the parameter optimization of numerical control processing.
Drawings
FIG. 1 is a flow chart of the numerical control workpiece processing parameter optimization method of the invention.
FIG. 2 is a flow chart of the differential evolution algorithm based on orthogonal double strands of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below by taking the optimization of the outer circle cutting of the numerical control machine tool, which is common in the production process, as an example, in the above-mentioned documents (a) to (e).
The numerical control workpiece processing parameter optimization method specifically comprises the following steps:
step 1, establishing a cutting parameter optimization model according to a cutting process in numerical control machining.
Step 1.1, firstly, establishing a target evaluation function according to the minimized unit production cost UC, wherein the unit production cost is the actual cutting processing cost CMCost C required for workpiece handling operation and idle running of toolIAnd cost of tool changing operation CrThe wear cost component C of the cutting toolT
The establishment process of each cutting parameter optimization target is as follows:
step 1.1.1, minimizing unit cost UC, UC ═ CM+CI+Cr+CT
Step 1.1.2 cost C of actually performing cuttingM
Figure BDA0003249862380000071
Wherein k is0For direct and indirect labor costs, D and L are the workpiece diameter and length.
Cost C required for work handling and tool idle runningI,CI=k0[tc+(h1L+h2)(n+1)]Wherein t iscTime for loading and unloading work, h1、h2N is the number of rough cuts, and is a constant relating to the turning tool idle time and advance/retreat time.
Step 1.1.3, tool change operation cost CR
Figure BDA0003249862380000072
Step 1.1.4, cost of tool wear CT
Figure BDA0003249862380000073
Wherein k istWhich is the cost of the blade.
And step 1.2, simultaneously, determining a cutting parameter optimization model by taking parameter value ranges such as cutting speed, feed quantity and cutting depth, tool service life, machined surface roughness, cutting force and cutting power, stable cutting area, temperature on contact surfaces of chips and tools, surface roughness, cutting depth, and mutual restriction conditions between rough and finish machining parameters as constraint conditions.
Wherein, the 8 types of constraint conditions are as follows:
(1) the ranges of values of parameters such as cutting speed, feed amount and cutting depth are taken as constraints, factors such as the processing quality of a workpiece, the processing efficiency and the personal safety of operators are considered, and the ranges of values of the parameters such as the cutting speed, the feed amount and the cutting depth are limited between a given maximum value and a given minimum value. The expression of the constraint is shown as follows:
vrL≤vr≤vrU
frL≤fr≤frU
drL≤dr≤drU
vsL≤vs≤vsU
fsL≤fs≤fsU
dsL≤ds≤dsU
wherein v isr、fr、drRespectively representing the cutting speed, the feeding amount and the cutting depth in the rough machining process; v. ofs、fs、dsRespectively representing the cutting speed, the feeding amount and the cutting depth in the finish machining process; v. ofrL、vrURespectively representing the lower and upper limits of the rough cutting speed; v. ofsL、vsURespectively representing the lower and upper limits of the cutting speed of finish machining; f. ofrL、frURespectively representing the lower and upper limits of the rough machining feed rate; f. ofsL、fsUThe lower limit and the upper limit of the finishing feed rate are shown; drL、drURespectively representing the lower and upper boundaries of the rough cutting depth; dsL、dsUThe upper and lower limits of the fine cut depth are shown, respectively.
(2) Constrained by tool life and machined surface roughness:
TL≤Tr≤TU
TL≤Ts≤TU
wherein, TrAnd TsRespectively, the life expectancy of the tool in rough machining and finish machining, TLAnd TUThe sub-tables represent the lower and upper bounds of tool life.
(3) With cutting force and cutting power as constraints:
Fr=k1(fr)μ(dr)v≤Fu
Fs=k1(fs)μ(ds)v≤Fu
Figure BDA0003249862380000081
Figure BDA0003249862380000082
wherein, Fr、FsRespectively, cutting forces in rough machining and finish machining, FuIs an upper bound on the allowable cutting force. k is a radical of1Mu and v are constants in the expression; the cutting power in the course of machining must not exceed the machine power, Pr、PsDenotes the cutting power in roughing and finishing, respectively, PuTo the upper bound of the permissible cutting power, η is the efficiency of the machine tool.
(4) With the stable cutting area as constraint:
(vr)λfr(dr)v≤SC
(vr)λfs(ds)v≤SC
where λ and v are constants in the expression, and SC represents a stable cutting region constraint upper limit.
(5) With temperature on the chip and tool interface as a constraint:
Qr=k2(vr)τ(fr)Φ(dr)δ≤Qu
Qs=k2(vs)τ(fs)Φ(ds)δ≤Qu
wherein Q isrAnd QsIndicating the temperature, Q, at the chip-tool contact surfaceuIs the upper temperature range; k is a radical of2Tau, phi and delta are expression constants,
(6) Surface roughness constraint, surface roughness being a factor in measuring the quality of a workpiece product:
Figure BDA0003249862380000091
wherein, SRUUpper bound representing allowable roughness values:
(7) the cutting depth constraint, one of the important parameters in the cutting depth type cutting process, and the total cutting depth of the cutter are the sum of the cutting depths of a plurality of times of rough machining and a time of finish machining.
Figure BDA0003249862380000092
Wherein d istDenotes the total depth of cut, n is the number of rough machining times and is a positive integer
(8) Constraint conditions for mutual restriction between rough machining parameters and finish machining parameters are as follows:
the cutting depth, the feed rate and the cutting depth in the rough machining and the finish machining have certain restricted relation:
vs≥k3vr
fr≥k4fs
dr≥k5ds
wherein k is3、k4、k5Is a constant of correlation.
Step 1.3, determining cutting parameters { v ] needing to be optimizedr、fr、dr、vs、fs、ds}:
Cutting speed v of each rough machiningr
Feed rate f per roughingr
Depth of cut d per roughingr
Finish machining cutting speed vs
Feed rate f for finishings
Depth of cut d of finish machinings
In order to verify the implementation feasibility of the method, the technical method adopted according to the invention content obtains the machining process parameters of the machine tool according to the relevant documents (a) - (e) and the relevant design parameters of the numerical control machine tool, and completes the optimization objective and the constraint function.
TABLE 1 processing parameters
D=50mm L=300mm SC=140 VrL=50m/min FrL=0.1mm/rev
DrL=1mm vrU=500mm/rev frU=0.9mm/rev DrU=4mm vsL=50m/min
fsL=0.1mm/rev DsL=0.5mm vsU=500m/min frU=0.9mm/rev DsU=2mm
p=5 q=1.75 r=0.75 v=-1 μ=0.75
v=-1 η=0.85 λ=2 τ=0.4 Φ=0.2
k0=0.5$/min k1=108 k2=132 k3=1 k4=2.5
k5=1 kt=2.5$/edge δ=0.105 R=1.2mm h1=7*104
h2=0.3 C0=6×10-11 te=3.33×10-3min/edge tc=0.75min/piece Pu=15KW
TL=25min TU=45min FU=200Kgf QU=1000℃ Sr=10μm
And 2, solving the cutting parameter optimization model by using an orthogonal double-chain differential evolution algorithm.
Step 2.1, setting parameters of a differential evolution algorithm of the orthogonal double chains: maximum number of iterations g, number of population particles Np and dimension Dim (Dim 6, { v })r、fr、dr、vs、fs、ds}), an orthogonal chain crossing factor CR, a differential variation factor F and a threshold Trap _ Local _ times of continuous trapping Local optimum times; then, a difference population X is randomly generated in the solution space, i.e.:
X∈{xd i,g/d=1,2,...,Dim;g=1,2,...,Gen;i=1,2,...,Np}
xd i,grepresents the d-dimension individual solution of the ith particle of the g generation.
Next, a sine double-strand X _ sin and a cosine double-strand X _ cos are generated by X, namely:
X_sin={X_sin1=Xbd·sin(X);X_sin2=-Xbd·sin(X)},
X_cos={X_cos1=Xbd·cos(X);X_cos2=-Xbd·cos(X)},
Xbdfor searching spaceBoundary value
Finally, the composition of the orthogonal duplexes: x1orth_chain={X_sin1,X_cos1},X2orth_chain={X_sin2,X_cos2}。
2.2, a large number of constraint conditions exist in the cutting parameter model, the constraint conditions are nonlinear, and common differential evolution algorithms are random optimization algorithms aiming at the problem of no constraint, so that a penalty function method needs to be introduced into the algorithms, and a target function and the constraint conditions are simultaneously integrated into a fitness function.
Figure BDA0003249862380000101
Wherein f (x) is an optimized objective function, Gi(x) And Hj(x) Penalty functions, r, corresponding to inequality and equality constraints, respectivelyiAnd sjCorresponding penalty factors. For solutions satisfying all constraints, Gi(x) And Hj(x) Is 0, so that Φ (X) ═ f (X). For infeasible solutions, their fitness value is increased by a penalty function.
And (4) combining a penalty function, introducing a mark variable ismETAll, calculating the value of the fitness function, and if all constraint conditions are met, the value of the mark variable ismETAll is 1, otherwise, the value of the mark variable ismETAll is 0.
And 2.3, preferably selecting the orthogonal chains according to the fitness value of each individual in the orthogonal double chains with the constraint condition. Specifically, firstly, calculating the fitness of each individual in the orthogonal double chains with constraint conditions; then, the sine chain x _ sin and the cosine chain y _ cos are preferably selected according to the fitness value, namely:
X_sini,g=argbest{Jx_sin1 i,g,Jx_sin2 i,g/i=1,2,...,Np;g=1,2,...,Gen}
X_cosi,g=argbest{Jx_cos1 i,g,Jx_cos2 i,g/i=1,2,...,Np;g=1,2,...,Gen}
Jx_sin1 i,gthe g-th generation of the sine chain x _ sin1Fitness value of the ith particle;
Jx_sin2 i,grepresents the fitness value of the ith generation of the ith particle of the sine chain x _ sin 2;
Jx_cos1 i,grepresents the fitness value of the ith generation of the ith particle of the cosine chain x _ cos 1;
Jx_cos2 i,grepresents the fitness value of the ith generation of the cosine chain x _ cos 2.
Preferred for argbest are: (1) jx 'satisfying all constraints is better than Jx' not satisfying all constraints;
(2) when the same constraint condition is satisfied (fully satisfied or not satisfied), argbest is argmin.
Step 2.4, crossing the orthogonal chains according to the random probability to generate a new filial chain XnewExpressed as:
Figure BDA0003249862380000111
GRrandis cross probability random number, ranging from 0-1, DimrandIs a dimension random number and ranges from 1 to Dim.
And 2.5, determining that the orthogonal chain search strategy updates the orthogonal double chains according to the change of the optimal fitness value with the constraint condition mark. In particular, the method comprises the following steps of,
an applicability value of isomeetall ═ 1 is better than an applicability value of isomeetall ═ 0;
if the optimal fitness value J of the current iterationX_local_bestIs better or less than the global fitness value JXbestI.e. Jx_local_best<JXbestWhen using XnewTrend to global optimal solution XbestThe local search strategy of (1) updates the orthogonal double-strand, namely:
X_sin1=(Xbest+sin((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_sin2=(Xbest-sin((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_cos1=(Xbest+cos((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_cos2=(Xbest+cos((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
α=power(2,timeseff)
timeseffcounting for significant iterations, i.e. successive occurrences of JX_local_bestIs better than or less than JXbestNumber of times of
At the same time, the global optimal solution X is updatedbestAnd global optimum fitness value JXbest
If JX_local_best=JXbestAnd timestrapIf < Trap _ Local _ times, X is usedbestTrend towards XnewLocal search strategy of, updating orthogonal duplexes, i.e.
X_sin1=(Xbest/timestrap+sin((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_sin2=(Xbest/timestrap-sin((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_cos1=(Xbest/timestrap+cos((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_cos2=(Xbest/timestrap-cos((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
α=power(2timeseff)
timestrapFor successive trapping in locally optimum statistical times, i.e. successive occurrence of JX_local_best=JXbestThe number of times.
If JX_local_best=JXbestAnd timestrapWhen Trap _ Local _ times, an orthogonal double-strand global search strategy with xtest as the center is adopted to update the orthogonal double-strand:
X_sin1=Xbest+Xbd·sin(θ)
X_sin2=Xbest-Xbd·sin(θ)
X_cos1=Xbest+Xbd·cos(θ)
X_cos2=Xbest-Xbd·cos(θ)
theta is a random number and has a value in the range of 0-2 pi, i.e., theta is { theta ═ theta }d i/i=1,2,...Np;d=1,2,...,Dim}
Iteration is carried out through the search strategy, and once the end condition of the algorithm is reached, the final cutting parameter optimization result and the fitness value are output.
Will dtThe results at 6.0mm are compared with the results of the algorithms employed in the above prior art documents (a) - (e), as shown in tables 2 and 3:
table 2 compares the optimal cutting parameters and fitness values with those of other optimization algorithms by using orthogonal double-chain differential evolution algorithm
Figure BDA0003249862380000131
As shown in table 2, the algorithm of the present invention has a minimum fitness value, obtains an optimal cutting parameter, and achieves a minimum unit cost.
TABLE 3 fitness value by orthogonal double-stranded differential evolution algorithm in comparison with other optimization algorithms
Figure BDA0003249862380000132
As shown in table 3, the fitness value obtained by the orthogonal double-stranded differential evolution algorithm is the minimum, and the average fitness value of multiple iterations is also the minimum, so that the method has fast and efficient parameter optimization performance compared with other algorithms. And document (e): compared with the MABC-inner algorithm, 11.79% of workpiece processing unit cost can be saved, and the cost saving is more remarkable compared with other algorithms.
The above results show that: in the aspect of solving the cutting parameter optimization problem, the orthogonal double-chain differential evolution algorithm has obvious advantages compared with other algorithms.
In conclusion, the cutting parameters are optimized through the differential evolution algorithm of the orthogonal double chains, the cutting parameter optimization model is established by taking the common numerical control machine tool excircle cutting optimization as an example, and finally, a reasonable and rapid numerical control workpiece processing parameter selection mode for guiding actual production is provided.
The above description is meant to be illustrative of the present invention and the technical principles employed, and not to limit the present invention, and any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A numerical control machining parameter optimization method is characterized by comprising the following steps:
step 1, establishing a target evaluation function with the minimum unit cost in the numerical control machining process, determining a target to be optimized and a machining constraint condition, and determining a parameter optimization model of the numerical control machining according to the target evaluation function and the machining constraint condition;
and 2, constructing a fitness function according to the numerical control machining parameter optimization model, and solving the parameter optimization model by adopting an orthogonal double-chain differential evolution algorithm to obtain an optimal parameter set and a corresponding fitness value.
2. The numerical control machining parameter optimization method according to claim 1, wherein the orthogonal double-stranded differential evolution algorithm comprises the following steps:
(1) initializing a particle swarm by utilizing an orthogonal double-chain structure based on the initial population X, wherein the orthogonal double-chain structure is used for generating sine double-chains X _ sin1 and X _ sin2 by utilizing sine and generating cosine double-chains X _ cos1 and X _ cos2 by utilizing cosine; x1orth _ chain population orthogonal chain 1 is formed by X _ sin1 and X _ cos 1; x2orth _ chain orthogonal chain 2 is formed by X _ sin2 and X _ cos2, and a group orthogonal double chain is formed by X1orth _ chain and X2orth _ chain;
(2) calculating the fitness value of each individual in the orthogonal double-stranded population; preferentially evolving the sine double-chain into a sine chain X _ sin according to the fitness value with the constraint condition meeting the mark ismETAll; in the same way, optimizing cosine double chains to form cosine chains X _ cos; forming an optimized population orthogonal chain Xorth _ chain by X _ sin and X _ cos;
(3) using the orthogonal cross strategy based on Xorth_chainCompleting the crossover to generate a filial chain XnewUpdating the offspring chain after mutation; at the same time, the optimal solution X of the current iteration is updatedlocal_bestOptimal fitness value J with current iterationX_local_best
(4) According to the current iteration optimal fitness value JX_local_bestAnd global optimum fitness value JXbestDetermining an orthogonal chain search strategy; according to the global optimum solution XbestAnd the child chain XnewUpdating the population orthogonal double chains; at the same time, the global optimal solution X is updatedbestAnd global optimum fitness value JXbest(ii) a Judging whether a termination condition is reached, if so, outputting a result; otherwise, repeating the steps (2) to (4) to continue solving.
3. The numerical control machining parameter optimization method according to claim 2, characterized in that:
the parameters of the differential evolution algorithm of the orthogonal double chains comprise: the maximum iteration number Gen, the number Np of differential population particles and the dimension Dim of numerical control machining parameters of the differential population particles, an orthogonal chain crossing factor CR, a differential variation factor F and a continuous trapping Local optimum number threshold Trap _ Local _ times.
4. The numerical control machining parameter optimization method according to claim 3, characterized in that:
the initialization of the orthogonal double strand is as follows: randomly generating a population of offspring X in solution space, i.e.
X∈{xd i,g/d=1,2,…,Dim;g=1,2,…,Gen;i=1,2,…,Np}
xd i,gRepresenting the d-dimension individual solution of the ith particle of the g generation;
generating sine double-strand X _ sin and cosine double-strand X _ cos from X, i.e.
X_sin={X_sin1=Xbd·sin(X);X_sin2=-Xbd·sin(X)},
X_cos={X_cos1=Xbd·cos(X);X_cos2=-Xbd·cos(X)},
XbdIs a search space boundary value;
construction of the orthogonal duplexes: x1orth_chain={X_sin1,X_cos1},X2orth_chain={X_sin2,X_cos2}。
5. The numerical control machining parameter optimization method according to claim 4, characterized in that: in the step (2), calculating the fitness value of each particle band constraint condition in the orthogonal double chains; the sine chain x _ sin and the cosine chain y _ cos are preferably selected according to the fitness value, i.e.
X_sini,g=argbest{Jx_sin1 i,g,Jx_sin2 i,g/i=1,2,…,Np;g=1,2,…,Gen}
X_cosi,g=argbest{Jx_cos1 i,g,Jx_cos2 i,g/i=1,2,…,Np;g=1,2,…,Gen}
Jx_sin1 i,gRepresents the fitness value of the ith generation of the ith particle of the sine chain x _ sin 1;
Jx_sin2 i,grepresents the fitness value of the ith generation of the ith particle of the sine chain x _ sin 2;
Jx_cos1 i,grepresents the fitness value of the ith generation of the ith particle of the cosine chain x _ cos 1;
Jx_cos2 i,grepresents the fitness value of the ith generation of the ith particle of the cosine chain x _ cos 2;
preferred for argbest are:
(1) jx 'satisfying all constraints is better than Jx' not satisfying all constraints;
(2) when the same constraint condition is satisfied (fully satisfied or not satisfied), argbest is argmin.
6. The numerical control machining parameter optimization method of claim 1, wherein the objective function and the constraint condition are simultaneously integrated into a fitness function:
Figure FDA0003249862370000021
wherein f (x) is an optimized objective function, Gi(x) And Hj(x) Penalty functions, r, corresponding to inequality and equality constraints, respectivelyiAnd sjIs the corresponding penalty factor; for solutions satisfying all constraints, Gi(x) And Hj(x) Is 0, such that Φ (X) ═ f (X); for unfeasible solutions, their fitness value is increased by the values of the penalty functions G (x) and H (x).
7. The numerical control machining parameter optimization method according to claim 6, characterized in that a flag variable isMeetAll is introduced, the value of the fitness function is calculated, and when all constraint conditions are satisfied, the value of the flag variable isMeetAll is 1, otherwise, it is 0.
8. The numerical control machining parameter optimization method according to claim 7, characterized in that: orthogonal chain crossing is carried out according to random probability to generate a new filial generation population XnewIs shown as
Figure FDA0003249862370000031
CRrandIs cross probability random number, ranging from 0-1, DimrandIs a dimension random number and ranges from 1 to Dim.
9. The numerical control machining parameter optimization method according to claim 8, characterized in that: determining the orthogonal chain search strategy to update the orthogonal double chains according to the change of the optimal fitness value of the isometall with the mark quantity, namely:
an applicability value of isomeetall ═ 1 is better than an applicability value of isomeetall ═ 0;
if the optimal fitness value J of the current iterationX_local_bestIs better or less than the global fitness value JXbestWhen using XnewTrend to global optimal solution XbestPartial search strategy 1, updating the orthogonal double strand, i.e.
X_sin1=(Xbest+sin((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_sin2=(Xbest-sin((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_cos1=(Xbest+cos((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
X_cos2=(Xbest+cos((Xnew-Xbest)/abs(Xbd-Xnew))·Xbd·α)/2
α=power(2,timeseff)
timeseffCounting for significant iterations, i.e. successive occurrences of JX_local_bestIs better than or less than JXbestNumber of times of
At the same time, the global optimal solution X is updatedbestGlobal optimum fitness value JXbestAnd timeseff
If JX_local_best=JXbestAnd timestrap<When Trap _ Local _ times, X is usedbestTrend towards XnewPartial search strategy 2, updating the orthogonal double strand, i.e.
X_sin1=(Xbest/timestrap+sin((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_sin2=(Xbest/timestrap-sin((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_cos1=(Xbest/timestrap+cos((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
X_cos2=(Xbest/timestrap-cos((Xnew-Xbest)·timestrap/abs(Xbd-Xnew))·Xbd·α)/2
α=power(2,timeseff)
timestrapFor successive trapping in locally optimum statistical times, i.e. successive occurrence of JX_local_best=JXbestThe number of times of (c);
update timestrap
If JX_local_best=JXbestAnd timestrapWhen Trap _ Local _ times, an orthogonal double-chain global search strategy taking a global optimal solution as a center is adopted to update the orthogonal double-chain, namely the orthogonal double-chain is updated
X_sin1=Xbest+Xbd·sin(θ)
X_sin2=Xbest-Xbd·sin(θ)
X_cos1=Xbest+Xbd·cos(θ)
X_cos2=Xbest-Xbd·cos(θ)
Theta is a random number and has a value in the range of 0-2 pi, i.e.
Figure FDA0003249862370000041
timestrapAnd timeseffCarrying out initialization setting;
iteration is carried out through the searching strategy, and once the end condition of the algorithm is reached, optimized numerical control machining parameters and the fitness value of the numerical control machining parameters are output.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that:
the program, when executed by a processor, implements the steps of a method of numerically controlled machining parameter optimization as claimed in any one of claims 1 to 9.
CN202111042440.XA 2021-09-07 2021-09-07 Numerical control machining parameter optimization method and storage medium Pending CN113836706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111042440.XA CN113836706A (en) 2021-09-07 2021-09-07 Numerical control machining parameter optimization method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111042440.XA CN113836706A (en) 2021-09-07 2021-09-07 Numerical control machining parameter optimization method and storage medium

Publications (1)

Publication Number Publication Date
CN113836706A true CN113836706A (en) 2021-12-24

Family

ID=78958504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111042440.XA Pending CN113836706A (en) 2021-09-07 2021-09-07 Numerical control machining parameter optimization method and storage medium

Country Status (1)

Country Link
CN (1) CN113836706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936525A (en) * 2022-05-26 2022-08-23 清华大学 Cylindrical grinding process optimization method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399451A (en) * 2018-02-05 2018-08-14 西北工业大学 A kind of Hybrid Particle Swarm Optimization of combination genetic algorithm
US20190080244A1 (en) * 2017-09-11 2019-03-14 Hefei University Of Technology Scheduling method and system based on improved variable neighborhood search and differential evolution algorithm
CN109839820A (en) * 2018-06-29 2019-06-04 扬州大学 Vibrational system PID control optimization method based on grey stochastic difference evolution algorithm
CN111105069A (en) * 2019-11-18 2020-05-05 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Numerical control machining process parameter optimization method, device and system and computer equipment
CN113050543A (en) * 2021-03-18 2021-06-29 河南科技大学 Energy-saving optimization method for machining parameters of numerically controlled lathe in cutting stage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190080244A1 (en) * 2017-09-11 2019-03-14 Hefei University Of Technology Scheduling method and system based on improved variable neighborhood search and differential evolution algorithm
CN108399451A (en) * 2018-02-05 2018-08-14 西北工业大学 A kind of Hybrid Particle Swarm Optimization of combination genetic algorithm
CN109839820A (en) * 2018-06-29 2019-06-04 扬州大学 Vibrational system PID control optimization method based on grey stochastic difference evolution algorithm
CN111105069A (en) * 2019-11-18 2020-05-05 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Numerical control machining process parameter optimization method, device and system and computer equipment
CN113050543A (en) * 2021-03-18 2021-06-29 河南科技大学 Energy-saving optimization method for machining parameters of numerically controlled lathe in cutting stage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
戈剑武;祁荣宾;钱锋;陈晶;: "一种改进的自适应差分进化算法", 华东理工大学学报(自然科学版), no. 04, 15 August 2009 (2009-08-15), pages 600 - 605 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936525A (en) * 2022-05-26 2022-08-23 清华大学 Cylindrical grinding process optimization method and device
CN114936525B (en) * 2022-05-26 2022-12-09 清华大学 Cylindrical grinding process optimization method and device

Similar Documents

Publication Publication Date Title
Wang et al. Optimization of multi-pass milling using parallel genetic algorithm and parallel genetic simulated annealing
CN109460859B (en) Workshop layout optimization method
Xie et al. Intelligent selection of machining parameters in multi-pass turnings using a GA-based approach
CN104808629B (en) A kind of dispatching method of flexible robot manufacturing cell
CN105844356A (en) Machine tool cutting amount energy consumption optimization method based on adaptive genetic algorithm
Mellal et al. Total production time minimization of a multi-pass milling process via cuckoo optimization algorithm
CN113836706A (en) Numerical control machining parameter optimization method and storage medium
Jabri et al. Multi-objective optimization using genetic algorithms of multi-pass turning process
CN113721462A (en) Multi-target cutting parameter optimization method and system under cutter determination condition
CN111859698B (en) Machine tool machining energy-saving optimization method based on longhorn beetle whisker algorithm
CN116560313A (en) Genetic algorithm optimization scheduling method for multi-objective flexible job shop problem
CN115099612A (en) Flexible job shop batch scheduling method considering carbon emission
CN113705978B (en) Static and dynamic integrated decision-making method and system for multi-machine task cutter
Slowik et al. Multi-objective optimization of surface grinding process with the use of evolutionary algorithm with remembered Pareto set
CN114415595A (en) Turning optimization method and system, computer equipment and storage medium
CN112861433A (en) Product low-carbon design method based on multi-level integrated framework
Yi et al. Optimization of CNC machine processing parameters for low carbon manufacturing
Lu et al. The optimal cutting parameter design of rough cutting process in side milling
CN107730072B (en) Parallel machine group scheduling method and system based on improved artificial immune algorithm
CN116360355A (en) Method for solving workshop scheduling problem based on NSGA-III algorithm
Adinarayana et al. Optimization for surface roughness, MRR, power consumption in turning of EN24 alloy steel using genetic algorithm
Li et al. Research on flexible job shop scheduling problem
Dalavi et al. Optimal drilling sequences for rectangular hole matrices using modified shuffled frog leaping algorithm
Ahmad et al. Optimization of process planning parameters for rotational components by genetic algorithms
Amiolemhen et al. Genetic algorithms solution to the single-objective machining process optimization time model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination