The invention belongs to the technical field of
drilling fluid deironing equipment, and provides a
drilling fluid demagnetizing device parameter optimization method based on a
genetic algorithm and a related device.The method comprises the steps that structure and process parameters of a
drilling fluid demagnetizing device are obtained and converted into individual codes of the
genetic algorithm, design parameters of the drilling fluid
demagnetizing device are obtained and serve as
gene codes, and the
genetic algorithm is used as the individual codes of the drilling fluid demagnetizing device; each individual represents a device configuration parameter; constructing a
fitness function based on the adsorption efficiency, the
processing capacity and the cost of the drilling fluid demagnetizing device; and based on the
fitness function, evaluating the fitness of each individual, performing selection,
crossover and
mutation operation on the
population to generate a new generation of individuals, and when a predetermined
evolution algebra is reached or the fitness reaches a predetermined threshold, completing optimization. Various parameters are allowed to be adjusted according to actual conditions by adopting a parameter optimization
algorithm so as to adapt to different types of fluids containing magnetic substances, the flexibility is high, and the application field is wider.