% Basic particle swarm optimization )-----------% Name: basic particle swarm optimization algorithm (PSO)% Role: Solving Optimization Problems% Description: it is a two-dimensional Variable. A small number of modifications are made in the program to accurately iterate the results.% Author: Zhou Nan% Time: 2009-12-18-Clear all;CLC;% X-axis length percentageX_rate = 0.02;% Ordinate length percentageY_rate = 0
I. Particle SwarmAlgorithmDifferences from real models:
The particle swarm optimization algorithm is designed based on the bird's feeding model. The model differs from the real bird's feeding process.
1. discretization and continuity are different:When a bird is flying, it is a continuous flight, and all the "lines" on the road constitute a position for food. The motion of particles in the model is discrete, it is a position that consists of "points
The original of this article QQ Space link: http://user.qzone.qq.com/29185807/blog/1462853926
The original article csdn blog link: http://blog.csdn.net/screscent/article/details/51362116
In the previous article, the analysis of Create and join was created and joined to the swarm cluster. So how the Swarm cluster works and manages it.
Let's analyze it below. 1, Swarm
Database questions: Student table, Course Selection table, course schedule, course schedule
There are three basic tables in the teaching database:
Student table S (S #, SNAME, AGE, SEX). Its Attributes indicate the student's student ID, name, AGE, and gender. The course selection table SC (S #, C #, GRADE ), the attributes indicate the student's student ID, course number, and score. The curriculum C (C #, C
, scheduler.default_group);if (null! = Checksimpletrigger) {return false;}} catch (Schedulerexception E1) {E1.printstacktrace ();}if (null!=dtime) {try {Dynamic and dynamic generation of a human task and a trigger. Managed by Scheduler Factory1. Create a new Task 2. Assign to default group 3. The bean executing the job needs to implement the job interface and implement the Execute methodJobdetail jobdetail = new Jobdetail ("reportjob_" + ID, scheduler.default_group,jobinformationpushtask.class);
The red text content is replaced with its own token, and you can post your own nail group notifications via the command line.Curl-h "Content-type:application/json"-d ' {"Msgtype": "Text", "text": {"Content": "I am me, is not the same fireworks"}} ' https:// oapi.dingtalk.com/robot/send?access_token=XXXXXXXMore content Reference Staples official documentationhttps://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.karFPetreeId=257articleId=105735 doctype=1The simplest command line nail-na
This is a creation in
Article, where the information may have evolved or changed.
Docker Swarm manageThe commands scheduler are built with filter and strategy ( cli/manage.go ):
sched := scheduler.New(s, fs)
schedulerthe actual function is to select cluster.ContainerConfig a list that meets the requirements node ( Docker Engine ):
// SelectNodesForContainer will return a list of nodes where the container can// be scheduled, sorted by order or preferen
10.40.100.145 onDocker run-d--name consul0--restart=always-v/mnt:/data \- P 8300:8300 \- P 8301:8301 \- P 8301:8301/udp \- P 8302:8302 \- P 8302:8302/udp \- P 8400:8400 \- P 8500:8500 \docker-registry.venic.com:5000/consul:latest-server-advertise 10.40.100.145-bootstrap-expect 310.40.100.146 onDocker run-d--name consul1--restart=always-v/mnt:/data \- P 8300:8300 \- P 8301:8301 \- P 8301:8301/udp \- P 8302:8302 \- P 8302:8302/udp \- P 8400:8400 \- P 8500:8500 \docker-registry.venic.com:5000/cons
='#监控url"'Data={parameter} applogin=requests.post (url,data)ifInt (applogin.status_code)!=200: send_message (Content="app login does not load properly! Time is:%s"%Datetime.datetime.now ())Print(U'App Login is a can not to login') Else: Print(U'App login can be accessed normally')if __name__=='__main__': whileTrue:Try: Applogin () index () Appindex () Time.sleep (60) exceptException as E:Print(e)ContinueThen, go and Debug.After the test is complete, the script can be updated
Now grassroots webmaster If only rely on a website to conquer, is very difficult things, then if we do a station group so through to station to operate the way, it is still very easy to make money, but the station swarm optimization if not able to hide their intentions, it is easy to let Baidu Spider identified, At that time your site is facing the danger of being K! Let's talk about how to get out of this danger!
One: Hide the whois information of t
Several fitness evaluation functions are given, and the graphical representation is given.
The first few days of the virus, reinstall the system, accidentally the program all formatted, crying!!! No way, a lot of programs are missing, now put these several typical functions rewritten, give them out, even if the particle swarm algorithm is an end! Hate virus!!!!
The first function: The Griewank function, the graph looks like this:
The fitness func
This is a creation in
Article, where the information may have evolved or changed.
Docker Swarm manageThe options of the command are filter used to specify scheduler Docker Engine the selected filter, whose variables are defined as follows ( cli/flags.go ):
// hack for go vetflFilterValue = cli.StringSlice(filter.List())// DefaultFilterNumber is exportedDefaultFilterNumber = len(flFilterValue)flFilter = cli.StringSliceFlag{ Name: "filter, f", Us
find regular match matches the absolute path and the default is in place, which means that the default is added ^$ For an example absolute path/(root directory) under Chenyang.txt If you write find/-regextype'posix-extended'-regex'chen.*'This is not found because the absolute path to the Chenyang.txt is/chenyang.txt chen.* can't match because chen.* default is ^chen.*$ so I can't match this is my summaryYang in person hand-beatingSouth elder brother: VPN (for FQ out, we have collected a bunch o
After an unexpected restart, the container in the swarm cluster does not come up, and the replicas is always 0View specific services and indicate network-related issues in errorOpen/var/log/message to view the complete error message, as follows:Level=error msg= "Fatal task Error" error= "network DM-RVXPS4PU6IS8 is already using parent interface bond0.24" module= "node /agent/taskmanager "WORKAROUND: Delete the Docker network data file, the Docker root
1. Bird swarm behavior, three forces as the focus
The birds move in one direction and give them a target in the game, and when they fly toward the target, if the code simply lets the birds move toward the target and then moves forward, it can cause the birds to crowd, especially after reaching the target point where the birds flock together.
The effect we want to achieve is:
1. Birds do not gather together (separation force)
2. Birds a
The original text of the QQ space Link: http://user.qzone.qq.com/29185807/blog/1462949671 The original article csdn blog link: http://blog.csdn.net/screscent/ article/details/51374524
1, the construction process
Let's look at the construction of cluster first.
Code in Swarm\manage.go
Initialization of a cluster object
Update nodes
In addition, the cluster object is also included in the Scheduler and API server.
Explain the importance of cluster
2
"title" A Particle swarm optimization algorithm with multi-scale cooperative mutation (2010)"thesis author" Tao Ning, Liufurong, Christina, Dong Zhijing"Paper Link" Paper (14-pages)SummaryThis paper analyzes the influence of mutation operation on particle swarm optimization (PSO), proposes a new PSO algorithm with multi-scale cooperative mutation, aiming at the disadvantage of single mutation, slow converge
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.