[go: up one dir, main page]

CN101815326B - Method for allocating tasks in wireless sensor network based on negotiation - Google Patents

Method for allocating tasks in wireless sensor network based on negotiation Download PDF

Info

Publication number
CN101815326B
CN101815326B CN2010100338664A CN201010033866A CN101815326B CN 101815326 B CN101815326 B CN 101815326B CN 2010100338664 A CN2010100338664 A CN 2010100338664A CN 201010033866 A CN201010033866 A CN 201010033866A CN 101815326 B CN101815326 B CN 101815326B
Authority
CN
China
Prior art keywords
bidding
task
attribute
bid
bidder
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.)
Expired - Fee Related
Application number
CN2010100338664A
Other languages
Chinese (zh)
Other versions
CN101815326A (en
Inventor
高志鹏
刘会永
李玉坤
孟洛明
邱雪松
芮兰兰
陈兴渝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
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 Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN2010100338664A priority Critical patent/CN101815326B/en
Publication of CN101815326A publication Critical patent/CN101815326A/en
Application granted granted Critical
Publication of CN101815326B publication Critical patent/CN101815326B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于协商的无线传感器网络任务分配方法,包括以下步骤:无线传感器网络中的节点作为招标方发布招标启事,等待竞标方出价;收到竞标邀请的节点根据对待分配任务的可完成度以及其当前剩余能量来决定是否参与竞标,决定参与竞标的节点作为竞标方就待分配任务的各个属性进行出价;招标方采用多属性效用函数来评价与竞标方的协商过程中各竞标方的出价方案,然后选择标的。本发明在任务分配过程中就考虑到了节点的剩余电量和任务预期能耗等因素,采用多属性效用函数来评价分配方案的优劣,提高了分配的综合效用值,把即时成功策略、轮次模糊策略和无失败策略融入到MAS自动协商算法中,提高了任务分配的实时性,灵活性和成功率。

The invention discloses a negotiation-based wireless sensor network task assignment method, which includes the following steps: a node in the wireless sensor network issues a bidding notice as a bidder, and waits for bidders to bid; The degree of completion and its current remaining energy determine whether to participate in the bidding, and the nodes that decide to participate in the bidding act as bidders to bid for each attribute of the task to be assigned; the bidder uses a multi-attribute utility function to evaluate each bidder in the negotiation process with the bidder , and select an objective. In the process of task allocation, the present invention takes factors such as the remaining power of the node and the expected energy consumption of the task into consideration, and uses a multi-attribute utility function to evaluate the pros and cons of the allocation scheme, improves the comprehensive utility value of the allocation, and integrates the instant success strategy, round The fuzzy strategy and no-failure strategy are integrated into the MAS auto-negotiation algorithm, which improves the real-time performance, flexibility and success rate of task assignment.

Description

基于协商的无线传感器网络任务分配方法Negotiation-Based Task Allocation Method for Wireless Sensor Networks

技术领域technical field

本发明涉及无线传感器网络领域,尤其涉及一种基于协商的无线传感器网络任务分配方法。The invention relates to the field of wireless sensor networks, in particular to a negotiation-based wireless sensor network task allocation method.

背景技术Background technique

无线传感器网络出现后,其应用领域已经由最初的军事领域扩展到其他许多领域,能够完成诸如灾难预警与救助、家庭健康检测、空间探索等传统系统无法完成的任务。传感器网络中的任务分配是一个历久弥新的研究领域。由于无线传感器网络一般都是部署之后就基本很少人工进行管理和干预,所以就产生自主任务分配的需求。目前有关的无线传感器网络任务分配算法更多是关注多个节点之间的任务协作,考虑的是通过节点之间的协作来共同完成任务从而降低能耗、通信量等。目前还没有一种方法专门考虑单个节点即将失效时的快速有效的对当前任务的分配。无线传感器节点很容易失效,当一个正在执行任务的节点监测到自己由于能量即将耗尽等原因即将失效时,找到一种能够快速、低耗又成功率高的寻求一个任务接替者的方法是非常必要的。After the emergence of wireless sensor networks, its application field has expanded from the initial military field to many other fields, and it can complete tasks that traditional systems such as disaster warning and rescue, family health detection, and space exploration cannot complete. Task assignment in sensor networks is a long-standing research field. Since wireless sensor networks are generally deployed with little manual management and intervention, there is a need for autonomous task allocation. At present, the relevant wireless sensor network task allocation algorithms focus more on the task cooperation between multiple nodes, and consider the joint completion of tasks through the cooperation between nodes so as to reduce energy consumption and communication traffic. At present, there is no method that specifically considers the fast and efficient allocation of current tasks when a single node is about to fail. Wireless sensor nodes are prone to failure. When a node that is performing a task detects that it is about to fail due to energy depletion and other reasons, it is very important to find a fast, low-consumption and high success rate method to seek a task successor. necessary.

根据国家知识产权局的专利搜索,检索到与本发明较为相关的技术为如下的一项中国专利申请:申请号为200810236555.0,名称为”一种面向节能的移动Agent多步协商任务分配方法”。该技术采用多步协商方法的面向移动Agent的任务分配,采用的算法是经过改进的MAS(Multi-Agent System,多Agent系统)自动协商算法。在任务分配中都关注的时间消耗和电量消耗方面,不能有效地体现对电量消耗的关注。According to the patent search of the State Intellectual Property Office, the technology related to the present invention is retrieved as a Chinese patent application as follows: the application number is 200810236555.0, and the name is "a method for allocating energy-saving mobile Agent multi-step negotiation tasks". This technology adopts the multi-step negotiation method for mobile Agent-oriented task assignment, and the algorithm adopted is the improved MAS (Multi-Agent System, Multi-Agent System) automatic negotiation algorithm. In terms of time consumption and power consumption, which are both concerned in task assignment, the attention to power consumption cannot be effectively reflected.

具体来说,该在专利申请“一种面向节能的移动Agent多步协商任务分配方法”所提供的技术方案中,以MA(Mobile Agent,移动Agent)的任务消耗为基础进行多次协商,所得到的任务分配结果是不固定的,而且会随着MANET(Mobile Ad hoc Network,移动自组网)网络拓扑结构的动态变化而变化。在本发明提出的方法中,每个MA与其他MA在基于当时的系统消耗下进行协商,并且在一次协商中,一个MA只分配到一个任务。当它们完成各自分配的任务后,它们重新以当前时间的任务消耗为基础再次进行协商,每个MA分配到下一个任务,直到所有任务都完成。该方法保证了每个MA在每一步协商中只分配到一个任务,这样做能减少整个合作系统的时间消耗,减少设备电量消耗,从而延长网络的生存时间。Specifically, in the technical solution provided in the patent application "A Multi-step Negotiation Task Allocation Method for Energy-saving Mobile Agent", multiple negotiations are performed based on the task consumption of MA (Mobile Agent, Mobile Agent), so The obtained task assignment results are not fixed, and will change with the dynamic changes of MANET (Mobile Ad hoc Network, mobile ad hoc network) network topology. In the method proposed by the present invention, each MA negotiates with other MAs based on the current system consumption, and in one negotiation, one MA is assigned only one task. When they complete their assigned tasks, they negotiate again based on the task consumption at the current time, and each MA is assigned to the next task until all tasks are completed. This method ensures that each MA is assigned only one task in each step of negotiation, which can reduce the time consumption of the entire cooperation system, reduce the power consumption of equipment, and thus prolong the survival time of the network.

因此可以看出,该专利申请所公开的技术方案采用多步协商的方法进行任务分配,通信量比较大,能耗较高,不适合节点任务的实时分配。Therefore, it can be seen that the technical solution disclosed in this patent application adopts a multi-step negotiation method for task allocation, which has relatively large communication volume and high energy consumption, and is not suitable for real-time allocation of node tasks.

而传统的任务分配方法都是在分配任务之后才进行能耗的分析,造成了对于无线传感器网络任务分配过程中对任务完成度和能量损耗相互影响作用分析的脱节,不能有效的做到在任务分配过程中就体现出任务预期能耗和传感器节点当前能量对任务分配的影响。However, the traditional task assignment method is to analyze the energy consumption after assigning tasks, resulting in a disjointed analysis of the interaction between task completion and energy consumption in the task assignment process of wireless sensor networks, and cannot effectively achieve the task During the allocation process, the impact of the expected energy consumption of tasks and the current energy of sensor nodes on task allocation is reflected.

发明内容Contents of the invention

本发明的目的是针对现有技术中存在的缺陷和不足,提供一种当一个正在执行任务的无线传感器网络节点监测到自己由于能量即将耗尽等原因即将失效时,能够自主的快速、低耗又成功率高地寻求到一个任务接替者,同时在分配过程中的协商算法中对竞标方的效用进行评价时充分的考虑到任务预期能耗和传感器节点当前剩余能量等因素的任务分配方案。The purpose of the present invention is to address the defects and deficiencies in the prior art, and to provide a wireless sensor network node that is performing tasks when it detects that it is about to fail due to energy depletion and other reasons, which can autonomously fast and low-consumption It also seeks a task successor with a high success rate, and at the same time, when evaluating the utility of the bidder in the negotiation algorithm in the allocation process, it fully considers the expected energy consumption of the task and the current remaining energy of the sensor node and other factors.

为达到上述目的,本发明提供了一种基于协商的无线传感器网络任务分配方法,所述方法包括以下步骤:In order to achieve the above object, the present invention provides a negotiation-based WSN task assignment method, said method comprising the following steps:

S1,无线传感器网络中的节点作为招标方发布招标启事,等待竞标方出价;S1, the node in the wireless sensor network serves as the tenderer to issue a tender notice, waiting for the bidder to bid;

S2,收到竞标邀请的节点根据对待分配任务的可完成度以及其当前剩余能量来决定是否参与竞标,决定参与竞标的节点作为竞标方就待分配任务的各个属性进行出价;S2. The node that receives the bidding invitation decides whether to participate in the bidding according to the completion degree of the task to be assigned and its current remaining energy, and the node that decides to participate in the bidding acts as the bidder to bid for each attribute of the task to be assigned;

S3,招标方采用多属性效用函数来评价与竞标方的协商过程中各竞标方的出价方案,然后选择标的。S3, the tenderer uses a multi-attribute utility function to evaluate the bidding schemes of each bidder in the negotiation process with the bidder, and then selects the bid.

其中,该方法还包括步骤:S4,给所选择的竞标方分配任务,并给所有的竞标方发任务已分配通知。Wherein, the method further includes a step: S4, assigning tasks to the selected bidders, and sending a task assignment notification to all bidders.

其中,在步骤S1中招标方等待竞标方出价所遵循的原则如下:在招标方等待竞标方出价的过程中,不区分投标轮次,且不等待每一轮所有竞标方投标结束后再选择竞标方,也支持招标过程中节点的动态加入和离开。Among them, in step S1, the principle followed by the tenderee waiting for bids from bidders is as follows: in the process of waiting for bidders to bid, the tenderee does not distinguish between bidding rounds, and does not wait for all bidders in each round to complete their bids before choosing to bid It also supports the dynamic joining and leaving of nodes during the bidding process.

其中,在步骤S1中的招标启事按照多属性效用函数进行设计,所设计的招标启事Notice包括以下内容:Wherein, the bidding notice in step S1 is designed according to the multi-attribute utility function, and the designed bidding notice Notice includes the following contents:

Notice={P(p1,p2,…pN),W(w1,w2,…wN),LT,Tfeedback,Uthreshold},Notice={P(p 1 , p 2 ,...p N ), W(w 1 , w 2 ,...w N ), LT, T feedback , U threshold },

其中,in,

P(p1,p2,…pN)是任务属性向量,其中p1,………,pN是待分配任务所关注的N个属性,N为正整数;P(p 1 , p 2 ,...p N ) is a task attribute vector, where p 1 ,..., p N are the N attributes concerned by the task to be assigned, and N is a positive integer;

W(w1,w2,…wN)是任务权重向量,w1,………,wN分别对应任务属性向量中每个属性的重要性权值,

Figure G2010100338664D00031
W(w 1 , w 2 ,…w N ) is the task weight vector, w 1 ,……, w N respectively correspond to the importance weight of each attribute in the task attribute vector,
Figure G2010100338664D00031

LT是招标方在一个招标轮次中最后一次选择竞标方的截止时间;LT is the deadline for the bidder to select bidders for the last time in a bidding round;

Tfeedback是竞标方进行下一轮出价前等待中标通知的时间;T feedback is the time for bidders to wait for the bid-winning notice before proceeding to the next round of bidding;

Uthreshold是招标方预设的效用值的最大门限值。U threshold is the maximum threshold value of the utility value preset by the bidding party.

其中,步骤S3具体为:Wherein, step S3 is specifically:

当一个竞标方出价后,即判断该出价是否大于或等于效用值的最大门限值Uthreshold,若是,则选择该竞标方为标的,并发布中标通知;否则判断此时是否已到达截止时间LT,若是,则在当前的所有竞标方的出价中根据采用多属性效用函数计算的效用值选择标的,并发布中标通知,否则,招标方标记当前的效用值最大的出价,继续等待新的出价;When a bidder bids, it is judged whether the bid is greater than or equal to the maximum threshold value U threshold of the utility value. If so, the bidder is selected as the bid and the bid winning notice is issued; otherwise, it is judged whether the deadline LT has been reached , if so, select the bid from all the current bids according to the utility value calculated by using the multi-attribute utility function, and issue a bid winning notice, otherwise, the tenderee marks the current bid with the highest utility value and continues to wait for a new bid;

其中,多属性效用函数为:

Figure G2010100338664D00041
Among them, the multi-attribute utility function is:
Figure G2010100338664D00041

上式中,出价向量

Figure G2010100338664D00042
N是招标过程中需要协商的属性的个数,Oj i是第i个竞标方针对任务属性向量中的第j个属性的出价值,j∈[1,N],该属性至少包括对待分配任务的可完成度和耗电量,In the above formula, the bid vector
Figure G2010100338664D00042
N is the number of attributes that need to be negotiated in the bidding process, O j i is the bid value of the i-th bidder for the j-th attribute in the task attribute vector, j∈[1, N], this attribute includes at least Task completion and power consumption,

wj i是第i个招标方针对任务属性向量中的第j个属性的重要性权值,vj i是对第i个招标方针对任务属性向量中的第j个属性的评价函数值,w j i is the importance weight of the i-th bidding party for the j-th attribute in the task attribute vector, v j i is the evaluation function value of the i-th bidding party for the j-th attribute in the task attribute vector,

w值是由招标方指定的,v值表示对于竞标方给出的对于待分配任务的可完成度,招标方的满意度,v值通过以下方式计算:The w value is specified by the bidding party, and the v value indicates the degree of completion of the task to be assigned given by the bidding party, the satisfaction degree of the bidding party, and the v value is calculated by the following method:

当招标方的满意度随对第j个属性的出价Oj的提高而降低时,招标方对第j个属性的满意度

Figure G2010100338664D00043
max,min分别表示招标方对于该任务的最大、最小期望值;When the tenderer’s satisfaction decreases with the increase of the bid O j for the jth attribute, the tenderer’s satisfaction with the jth attribute
Figure G2010100338664D00043
max and min respectively represent the maximum and minimum expectations of the tenderer for the task;

当招标方的满意度随对第j个属性的出价Oj的提高而提高时,招标方对第j个属性的满意度

Figure G2010100338664D00044
When the tenderer’s satisfaction increases with the increase of the bid O j for the jth attribute, the tenderer’s satisfaction with the jth attribute
Figure G2010100338664D00044

上述技术方案具有如下优点:1、解决了无线传感器网络任务分配过程中任务分配和能耗分析脱离的现象,在任务分配过程中就考虑到了节点的剩余电量和任务预期能耗等因素;2、采用多属性效用函数来评价分配方案的优劣,提高了分配的综合效用值;3、把即时成功策略、轮次模糊策略和无失败策略融入到MAS自动协商算法中,提高了任务分配的实时性,灵活性和成功率。The above-mentioned technical solution has the following advantages: 1. It solves the phenomenon that task allocation and energy consumption analysis are separated during the task allocation process of the wireless sensor network, and factors such as the remaining power of the node and the expected energy consumption of the task are taken into account during the task allocation process; 2. The multi-attribute utility function is used to evaluate the pros and cons of the allocation scheme, which improves the comprehensive utility value of the allocation; 3. The instant success strategy, the round fuzzy strategy and the no-failure strategy are integrated into the MAS automatic negotiation algorithm, which improves the real-time task allocation flexibility, flexibility and success rate.

附图说明Description of drawings

图1是本发明实施例的方法流程图;Fig. 1 is the method flowchart of the embodiment of the present invention;

图2是本发明实施例的方法中招标方的决策过程流程图。Fig. 2 is a flow chart of the decision-making process of the bidding party in the method of the embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

依据本发明实施例的方法流程图如图1所示,包括如下步骤:The flow chart of the method according to the embodiment of the present invention is shown in Figure 1, including the following steps:

101,当一个节点因为电池能量耗尽或者其他原因即将失效时希望找到一个新的节点来代替自己完成目前承担的任务,此时它向同层的同簇节点发布消息,希望进行任务分配。101. When a node is about to fail due to battery energy exhaustion or other reasons, it hopes to find a new node to replace itself to complete the current task. At this time, it sends a message to the same cluster nodes on the same layer, hoping to allocate tasks.

要进行任务分配的节点首先发布招标启事,其中包括此次协商的目的任务、偏好的属性结构以及取值范围和截止时间。Nodes that want to assign tasks first issue a bidding notice, which includes the purpose of the negotiation, the preferred attribute structure, the value range and the deadline.

当产生任务分配需求的时候,由任务发布单元发布任务招标启事,任务招标启事是由结合多属性效用函数改进的招标算法而设计的。任务发布模型如下:When a task allocation requirement is generated, the task issuing unit issues a task bidding notice, which is designed by an improved bidding algorithm combined with multi-attribute utility functions. The task release model is as follows:

Notice={P(p1,p2,…pN),W(w1,w2,…wN),LT,Tfeedback,Uthreshold},Notice为招标启事,其中包含如下五项内容。Notice={P(p 1 , p 2 ,...p N ), W(w 1 , w 2 ,...w N ), LT, T feedback , U threshold }, Notice is a tender notice, which includes the following five items.

P(p1,p2,…pN)是任务属性向量,其中p1是主要关注属性,p2是次要关注属性,pN是第N关注属性,从p1~pN,属性的重要性依次递减。P(p 1 , p 2 ,...p N ) is the task attribute vector, where p 1 is the main attention attribute, p 2 is the secondary attention attribute, p N is the Nth attention attribute, from p 1 to p N , the attribute in descending order of importance.

W(w1,w2,…wN)是任务权重向量,分别对应任务属性向量中每个属性相应的权重,

Figure G2010100338664D00051
W(w 1 , w 2 ,...w N ) is the task weight vector, corresponding to the corresponding weight of each attribute in the task attribute vector,
Figure G2010100338664D00051

LT(LastTime)是招标方在一次招标中进行最后一次选择的截止时间。LT (LastTime) is the deadline for the tenderee to make the last selection in a tender.

Tfeedback,竞标方默认等待Tfeedback时间后如果没有中标通知就在自己可接受范围内进行下一轮出价。T feedback , the bidder waits for the T feedback time by default, and if there is no notification of winning the bid, the bidder will make the next round of bidding within his acceptable range.

Uthreshold,选中标的即时成功的一个门限值。出现大于等于此值的投标时就采用即时成功策略,提高招标效率,“即时成功”的策略在步骤203中解释。U threshold , a threshold value for the instant success of the selected target. When there is a bid greater than or equal to this value, the instant success strategy is adopted to improve the bidding efficiency. The "instant success" strategy is explained in step 203 .

102,收到竞标邀请的传感器节点根据各自对任务完成能力和维持能量等方面的估算来决定是否参与竞标。决定参与的竞拍方就待分配任务的各个属性进行出价。102. The sensor nodes that have received the bidding invitation decide whether to participate in the bidding according to their own estimates of the task completion capability and energy maintenance. Bidders who decide to participate place bids on the individual attributes of the task to be assigned.

招标方采用一定的策略对供应商的投标进行评价,选择符合偏好属性权重的效用最优投标作为中标者,该决策过程(即所采取的评价策略)如图2所示。The tenderee adopts a certain strategy to evaluate the supplier's bid, and selects the utility optimal bid that conforms to the preference attribute weight as the winning bidder. The decision-making process (that is, the evaluation strategy adopted) is shown in Figure 2.

201,等待竞标方出价:在等待竞标节点出价的过程中遵循的是轮次模糊策略。“轮次模糊策略”的定义为:不需要明确地区分投标轮次,不用等待每一轮所有竞标方投标结束后再进行判断选择,也支持招标过程中节点的动态加入和离开。201. Waiting for bids from bidders: the round fuzzy strategy is followed in the process of waiting for bidding nodes to bid. The definition of "round fuzzy strategy" is: there is no need to clearly distinguish the bidding rounds, and there is no need to wait for all bidders in each round to complete the bidding before making a judgment and selection, and it also supports the dynamic joining and leaving of nodes during the bidding process.

202,评价当前所有的投标方案:采用多属性效用函数来评价协商过程中各竞标方出价方案的优劣。在多属性效用函数的设计中把任务分配中需要考虑的多个因素组合成一个出价向量,其中任务属性作为向量中第一个分量,根据对属性的关注程度由高到低依次向后排开各个分量。结合在节点发布任务的同时发布的任务权重向量来计算每个出价方案的效用值。本实施例方法设计的多属性效用函数如下:202. Evaluate all current bidding schemes: use a multi-attribute utility function to evaluate the pros and cons of each bidder's bidding scheme in the negotiation process. In the design of the multi-attribute utility function, multiple factors that need to be considered in task assignment are combined into a bid vector, in which the task attribute is taken as the first component in the vector, and the attributes are arranged in order from high to low according to the degree of attention to the attribute. various components. The utility value of each bidding scheme is calculated by combining the task weight vector issued at the same time as the node publishes the task. The multi-attribute utility function designed by the method of this embodiment is as follows:

I:出价向量I: bid vector

N是招标中需要协商的属性个数。Oj i(j∈[1,N])是第i个竞标方针对任务属性向量中的第j个属性的出价值。属性在传统领域里可以是价格,质量,付款时间等,在传感器网络中可以是某个任务的完成度,耗电量等。 N is the number of attributes that need to be negotiated in the bidding. O j i (j∈[1, N]) is the bidding value of the i-th bidder for the j-th attribute in the task attribute vector. Attributes can be price, quality, payment time, etc. in the traditional field, and can be the completion of a certain task, power consumption, etc. in the sensor network.

II:效用函数II: Utility function

wj i是第i个招标方针对任务属性向量中的第j个属性的重要性权值。权值是全概率划分的,即vj i对第i个招标方针对任务属性向量中的第j个属性的评价函数值。本方法实施例只涉及只有一个招标方的情况。w j i is the importance weight of the i-th bidding party for the j-th attribute in the task attribute vector. The weights are divided by full probability, that is, v j i is the evaluation function value of the i-th bidding party for the j-th attribute in the task attribute vector. This embodiment of the method only involves the situation that there is only one bidding party.

w值是由招标方直接指定。v值表示竞标方给出的对于每个任务的可完成度,对应招标方针对该任务的满意度。根据出价向量利用如下公式计算而得:The value of w is directly specified by the bidding party. The v value indicates the degree of completion of each task given by the bidder, corresponding to the satisfaction of the bidder for the task. Calculated according to the bid vector using the following formula:

当招标方的满意度随对第j个属性的出价Oj的提高而降低时,招标方对第j个属性的满意度

Figure G2010100338664D00071
max,min分别表示招标方对于该任务的最大、最小期望值;When the tenderer’s satisfaction decreases with the increase of the bid O j for the jth attribute, the tenderer’s satisfaction with the jth attribute
Figure G2010100338664D00071
max and min respectively represent the maximum and minimum expectations of the tenderer for the task;

当招标方的满意度随对第j个属性的出价Oj的提高而提高时,招标方对第j个属性的满意度

Figure G2010100338664D00072
When the tenderer’s satisfaction increases with the increase of the bid O j for the jth attribute, the tenderer’s satisfaction with the jth attribute
Figure G2010100338664D00072

因此可以得到出价向量Oi的多属性效用函数是

Figure G2010100338664D00073
根据该函数可计算出效用值。Therefore, the multi-attribute utility function of the bid vector O i can be obtained as
Figure G2010100338664D00073
The utility value can be calculated according to this function.

203,根据“即时成功”的策略选择最高效用方案,以提高任务分配的效率。招标方首先自拟一个效用值Uthreshold,该值不进行公布,招标方不用等待每个轮次的结束或者严格遵循传统招标的步骤设计来选定标的,如果存在计算出的效用值U>=Uthreshold,就选择大于等于此值的那个最高值的出价,立即发出接收命令,和相应竞标方签订协议,成功结束本次招标。而不用必须等待一个招标轮次的结束或者一直等到没有更高出价方案才结束协商。这样,在任务分配的效用和效率间维持了平衡。如果不存在这样的效用值,则等待竞标方继续投标。203. Select the highest utility solution according to the "instant success" strategy, so as to improve the efficiency of task allocation. The bidding party first draws up a utility value U threshold , which will not be published. The bidding party does not need to wait for the end of each round or strictly follow the traditional bidding step design to select the bid. If there is a calculated utility value U>= U threshold , choose the highest bid that is greater than or equal to this value, immediately issue a receiving order, sign an agreement with the corresponding bidder, and successfully end this bidding. Instead of having to wait for the end of a bidding round or wait until there are no higher bids to end negotiations. In this way, a balance is maintained between utility and efficiency of task assignment. If no such utility value exists, wait for bidders to continue bidding.

204,到达截止时间LT时:为提高任务分配成功率采用无失败策略,即设定的截止时间不是招标结束时间,而是在此刻进行结束前的最后一次选择,这样能保证不出现招标失败的情况,只要当前有投标出现,即使所有投标满意度没有达到预设要求,也要选择当前所有投标中效用值最高的投标来完成本次任务分配。204. When the deadline LT is reached: adopt the no-failure strategy to improve the success rate of task allocation, that is, the set deadline is not the end time of the bidding, but the last choice before the end at this moment, so as to ensure that there will be no failure of the bidding In this case, as long as there are currently bids, even if the satisfaction of all bids does not meet the preset requirements, the bid with the highest utility value among all current bids should be selected to complete this task assignment.

选中投标方案后,任务分配节点就把任务授权给中标的节点。任务授权后,整个任务分配完成。然后发任务分配通知给所有的竞标方,整个协商过程结束。After the bidding scheme is selected, the task assignment node authorizes the task to the winning node. After the task is authorized, the entire task assignment is completed. Then send a task allocation notice to all bidders, and the entire negotiation process ends.

需要说明的是,本发明实施例中,把每一个传感器节点都当做一个Agent来考虑的,其中需要分配任务的节点称为招标方,参与竞争想要获得任务执行权的称为竞标方。It should be noted that, in the embodiment of the present invention, each sensor node is considered as an Agent, and the nodes that need to assign tasks are called bidders, and those who participate in the competition and want to obtain the task execution right are called bidders.

以下举一实例:在传感器节点a需要进行任务分配时,就发布招标启事,然后等待各参与者竞标,即开始任务分配的协商过程,整个步骤包括:An example is given below: when sensor node a needs to assign tasks, it will issue a bidding notice, and then wait for each participant to bid, that is, start the negotiation process of task assignment. The whole steps include:

1、在某个出价出后,首先判断当前投标是否达到或超过即时最大效用值Uthreshold1. After a certain bid is placed, first judge whether the current bid reaches or exceeds the immediate maximum utility value U threshold ,

2.1、是则发布中标通知,即时终止招标,宣布招标结束。2.1. If yes, the bid winning notice will be issued, the bidding will be terminated immediately, and the bidding will be announced to be over.

2.2、否则判断此时是否到达最大协商时间LT,2.2. Otherwise, judge whether the maximum negotiation time LT has been reached at this time,

3.1、当前达到LT时,则在当前出价中根据效用函数及规则选取目前最满意的offer(标的),发布中标通知,宣布招标结束;3.1. When the current bid reaches LT, select the most satisfactory offer (target) according to the utility function and rules in the current bid, issue a bid winning notice, and announce the end of the bidding;

3.2、如果此时没有达到最大协商时间LT,则投标方标记当前的效用值最大的投标offer,继续等待投标,新的投标包括可能新加入的竞标方的投标或者是前一轮的投标者在一定时延Tfeedback后没有收到反馈而继续加价的下一轮投标。然后至步骤1循环进行。3.2. If the maximum negotiation time LT is not reached at this time, the bidder will mark the bid offer with the highest utility value at the moment, and continue to wait for the bid. The next round of bidding that continues to increase the price without receiving feedback after a certain time delay T feedback . Then proceed to step 1 in a loop.

招标过程中如果出现竞标方离开(撤标),则要重新回到3.1处进行。If a bidder leaves (withdraws) during the bidding process, it must go back to 3.1.

对于协商过程中每一轮出价方案的优劣采用多属性效用函数进行评判:假设在传感器节点a发布的招标启事中包括两个协商属性:括负荷x和耗电量y;最大协商时间LT;即时终止效用值Uthreshold。即出价向量是(x,y)。负荷x的权值是0.8,耗电量y的权值是0.2,即

Figure G2010100338664D00081
Figure G2010100338664D00082
设招标方对于任务属性负荷x的期望值区间为:[100,200],其满意度随负荷值增大而递增;对于任务属性耗电量y的期望区间为:[0,100],其满意度随耗电量减少而递减。即The pros and cons of each round of bidding schemes in the negotiation process are judged by the multi-attribute utility function: Assume that the bidding notice issued by sensor node a includes two negotiation attributes: load x and power consumption y; maximum negotiation time LT; The immediate termination utility value U threshold . That is, the bid vector is (x, y). The weight of load x is 0.8, and the weight of power consumption y is 0.2, namely
Figure G2010100338664D00081
Figure G2010100338664D00082
Assume that the tenderee’s expected range of task attribute load x is: [100, 200], and its satisfaction increases with the increase of the load value; the expected interval of task attribute power consumption y is: [0, 100], its satisfaction The speed decreases as the power consumption decreases. Right now

vv xx aa == 11 -- 200200 -- xx 200200 -- 100100

vv ythe y aa == 100100 -- ythe y 100100 -- 00

上述方法的具体应用中有如下对多属性效用函数的其他一些说明与限定:In the specific application of the above method, there are some other explanations and limitations on the multi-attribute utility function as follows:

偏好总值最大;The total value of preference is the largest;

主属性a的满意度>次属性b的满意度;Satisfaction of main attribute a > satisfaction of secondary attribute b;

偏好总值相同时选择a满意度高的offer。When the total preference value is the same, choose the offer with high satisfaction.

如果此时传感器节点a同时收到表1中所示的几个投标,并且计算这些出价的多属性效用。If at this time sensor node a receives several bids shown in Table 1 at the same time, and calculates the multi-attribute utility of these bids.

表1Table 1

  出价向量(x,y)bid vector(x, y)  多属性效用值UMulti-attribute utility value U   Offer1Offer1   (180,30)(180, 30)   0.760.76   Offer2Offer2   (188,12)(188, 12)   0.880.88   Offer3Offer3   (190,20)(190, 20)   0.880.88   Offer4Offer4   (195,45)(195, 45)   0.870.87

根据如上规则,可以看出虽然offer4的x属性满意度很高,但是由于对属性y的满意度太低,它的总效用值低于offer2和offer3,而offer2和offer3的效用值相同时,选择属性x的满意度较高的那一组,即在本轮的4个offer中选择的最优offer是offer3(190,20)。According to the above rules, it can be seen that although the satisfaction of attribute x of offer4 is very high, its total utility value is lower than that of offer2 and offer3 due to the low satisfaction of attribute y, and when the utility values of offer2 and offer3 are the same, choose The group with higher satisfaction of attribute x, that is, the best offer selected among the 4 offers in this round is offer3(190, 20).

以上所述仅是本发明的实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变型,这些改进和变型也应视为本发明的保护范围。The foregoing is only an embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, some improvements and modifications can be made without departing from the technical principle of the present invention. It should be regarded as the protection scope of the present invention.

Claims (4)

1.一种基于协商的无线传感器网络任务分配方法,其特征在于,所述方法包括以下步骤:1. A wireless sensor network task assignment method based on negotiation, is characterized in that, described method comprises the following steps: S1,无线传感器网络中的节点作为招标方发布招标启事,等待竞标方出价;S1, the node in the wireless sensor network serves as the tenderer to issue a tender notice, waiting for the bidder to bid; S2,收到竞标邀请的节点根据对待分配任务的可完成度以及其当前剩余能量来决定是否参与竞标,决定参与竞标的节点作为竞标方就待分配任务的各个属性进行出价;S2. The node that receives the bidding invitation decides whether to participate in the bidding according to the completion degree of the task to be assigned and its current remaining energy, and the node that decides to participate in the bidding acts as the bidder to bid for each attribute of the task to be assigned; S3,招标方采用多属性效用函数来评价与竞标方的协商过程中各竞标方的出价方案,然后选择标的;S3, the tenderer uses a multi-attribute utility function to evaluate the bidding schemes of each bidder in the negotiation process with the bidder, and then selects the bid; 在步骤S1中的招标启事按照多属性效用函数进行设计,所设计的招标启事Notice包括以下内容:The bidding notice in step S1 is designed according to the multi-attribute utility function, and the designed bidding notice Notice includes the following contents: Notice={P(p1,p2,…pN),W(w1,w2,…wN),LT,Tfeedback,Uthreshold},其中,Notice={P(p 1 , p 2 ,...p N ), W(w 1 , w 2 ,...w N ), LT, T feedback , U threshold }, where, P(p1,p2,…pN)是任务属性向量,其中p1,……,pN是待分配任务所关注的N个属性,N为正整数;P(p 1 , p 2 ,...p N ) is a task attribute vector, where p 1 ,...,p N are the N attributes concerned by the task to be assigned, and N is a positive integer; W(w1,w2,…wN)是任务权重向量,w1,……,wN分别对应任务属性向量中每个属性的重要性权值,
Figure FDA0000048850990000011
W(w 1 ,w 2 ,…w N ) is the task weight vector, w 1 ,…,w N respectively correspond to the importance weight of each attribute in the task attribute vector,
Figure FDA0000048850990000011
LT是招标方在一个招标轮次中最后一次选择竞标方的截止时间;LT is the deadline for the bidder to select bidders for the last time in a bidding round; Tfeedback是竞标方进行下一轮出价前等待中标通知的时间;T feedback is the time for bidders to wait for the bid-winning notice before proceeding to the next round of bidding; Uthreshold是招标方预设的效用值的最大门限值。U threshold is the maximum threshold value of the utility value preset by the bidding party.
2.如权利要求1所述的基于协商的无线传感器网络任务分配方法,其特征在于,还包括步骤:S4,给所选择的竞标方分配任务,并给所有的竞标方发任务已分配通知。2. The negotiation-based wireless sensor network task assignment method according to claim 1, further comprising a step: S4, assigning tasks to the selected bidders, and sending a task assignment notification to all bidders. 3.如权利要求1或2所述的基于协商的无线传感器网络任务分配方法,其特征在于,在步骤S1中招标方等待竞标方出价所遵循的原则如下:在招标方等待竞标方出价的过程中,不区分投标轮次,且不等待每一轮所有竞标方投标结束后再选择竞标方,也支持招标过程中节点的动态加入和离开。3. The wireless sensor network task assignment method based on negotiation as claimed in claim 1 or 2, characterized in that, in step S1, the principle that the bidding party waits for the bidding party to bid is as follows: in the process that the bidding party waits for the bidding party to bid , does not distinguish between bidding rounds, and does not wait for all bidders in each round to complete their bidding before selecting bidders. It also supports dynamic joining and leaving of nodes during the bidding process. 4.如权利要求1或2所述的基于协商的无线传感器网络任务分配方法,其特征在于,步骤S3具体为:4. The negotiation-based wireless sensor network task assignment method according to claim 1 or 2, wherein step S3 is specifically: 当一个竞标方出价后,即判断该出价是否大于或等于效用值的最大门限值Uthreshold,若是,则选择该竞标方为标的,并发布中标通知;否则判断此时是否已到达截止时间LT,若是,则在当前的所有竞标方的出价中根据采用多属性效用函数计算的效用值选择标的,并发布中标通知,否则,招标方标记当前的效用值最大的出价,继续等待新的出价;When a bidder bids, it is judged whether the bid is greater than or equal to the maximum threshold value U threshold of the utility value. If so, the bidder is selected as the bid and the bid winning notice is issued; otherwise, it is judged whether the deadline LT has been reached , if so, select the bid from all the current bids according to the utility value calculated by using the multi-attribute utility function, and issue a bid winning notice, otherwise, the tenderee marks the current bid with the highest utility value and continues to wait for a new bid; 其中,多属性效用函数为: U ( O i ) = Σ j = 1 N w i j v i j , Among them, the multi-attribute utility function is: u ( o i ) = Σ j = 1 N w i j v i j , 上式中,出价向量N是招标过程中需要协商的属性的个数,
Figure FDA0000048850990000023
是第i个竞标方针对任务属性向量中的第j个属性的出价值,j∈[1,N],该属性至少包括对待分配任务的可完成度和耗电量,
In the above formula, the bid vector N is the number of attributes that need to be negotiated in the bidding process,
Figure FDA0000048850990000023
is the bid value of the i-th bidder for the j-th attribute in the task attribute vector, j∈[1, N], this attribute at least includes the completion degree and power consumption of the task to be assigned,
wi j是第i个招标方针对任务属性向量中的第j个属性的重要性权值,vi j是对第i个招标方针对任务属性向量中的第j个属性的评价函数值,w i j is the importance weight of the i-th bidding party for the j-th attribute in the task attribute vector, v i j is the evaluation function value of the i-th bidding party for the j-th attribute in the task attribute vector, w值是由招标方指定的,v值表示对于竞标方给出的对于待分配任务的可完成度,招标方的满意度,v值通过以下方式计算:The w value is specified by the bidding party, and the v value indicates the degree of completion of the task to be assigned given by the bidding party, the satisfaction degree of the bidding party, and the v value is calculated by the following method: 当招标方的满意度随对第j个属性的出价Oj的提高而降低时,招标方对第j个属性的满意度
Figure FDA0000048850990000024
max,min分别表示招标方对于该任务的最大、最小期望值;
When the tenderer’s satisfaction decreases with the increase of the bid O j for the jth attribute, the tenderer’s satisfaction with the jth attribute
Figure FDA0000048850990000024
max and min respectively represent the maximum and minimum expectations of the tenderer for the task;
当招标方的满意度随对第j个属性的出价Oj的提高而提高时,招标方对第j个属性的满意度
Figure FDA0000048850990000025
When the tenderer’s satisfaction increases with the increase of the bid O j for the jth attribute, the tenderer’s satisfaction with the jth attribute
Figure FDA0000048850990000025
CN2010100338664A 2010-01-11 2010-01-11 Method for allocating tasks in wireless sensor network based on negotiation Expired - Fee Related CN101815326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010100338664A CN101815326B (en) 2010-01-11 2010-01-11 Method for allocating tasks in wireless sensor network based on negotiation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100338664A CN101815326B (en) 2010-01-11 2010-01-11 Method for allocating tasks in wireless sensor network based on negotiation

Publications (2)

Publication Number Publication Date
CN101815326A CN101815326A (en) 2010-08-25
CN101815326B true CN101815326B (en) 2011-06-15

Family

ID=42622410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100338664A Expired - Fee Related CN101815326B (en) 2010-01-11 2010-01-11 Method for allocating tasks in wireless sensor network based on negotiation

Country Status (1)

Country Link
CN (1) CN101815326B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9335816B2 (en) 2011-12-23 2016-05-10 Globalfoundries Inc. System and method for efficient service-instance oriented energy management in the internet of things

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063329B (en) * 2010-12-22 2012-12-12 北京邮电大学 Multi-agent coordination based management task dynamic decomposition method and system
CN102014439A (en) * 2010-12-22 2011-04-13 北京邮电大学 Task allocation method and device for clustered wireless sensor network based on contract net
CN102448123B (en) * 2012-01-16 2015-01-21 河海大学常州校区 Task allocation algorithm in wireless sensor network based on node property
US11237719B2 (en) 2012-11-20 2022-02-01 Samsung Electronics Company, Ltd. Controlling remote electronic device with wearable electronic device
US8994827B2 (en) 2012-11-20 2015-03-31 Samsung Electronics Co., Ltd Wearable electronic device
US11157436B2 (en) 2012-11-20 2021-10-26 Samsung Electronics Company, Ltd. Services associated with wearable electronic device
US10423214B2 (en) * 2012-11-20 2019-09-24 Samsung Electronics Company, Ltd Delegating processing from wearable electronic device
US11372536B2 (en) 2012-11-20 2022-06-28 Samsung Electronics Company, Ltd. Transition and interaction model for wearable electronic device
US10551928B2 (en) 2012-11-20 2020-02-04 Samsung Electronics Company, Ltd. GUI transitions on wearable electronic device
US10691332B2 (en) 2014-02-28 2020-06-23 Samsung Electronics Company, Ltd. Text input on an interactive display
CN105550020A (en) * 2014-10-28 2016-05-04 北京邮电大学 Object selection method and apparatus
CN105069010B (en) * 2015-07-07 2018-04-17 西安电子科技大学 Resource polymerization method based on multi-Agent
US10003549B2 (en) * 2016-04-21 2018-06-19 Google Llc System for allocating sensor network resources
CN106056214B (en) * 2016-05-18 2018-08-17 西北工业大学 A kind of multitask worker's selection method towards mobile quorum-sensing system
CN107770803B (en) * 2016-08-18 2021-07-23 中国科学院微电子研究所 An energy assessment method and system
CN106454952B (en) * 2016-11-11 2019-09-24 中国人民解放军海军航空大学 Multi-platform Target Assignment and sensor selection method based on multi-quantity competitive bidding
CN106779460B (en) * 2016-12-29 2020-11-10 新奥科技发展有限公司 An energy dispatch method and device for an energy station
CN107194790B (en) * 2017-06-21 2021-07-02 苏州发飚智能科技有限公司 Personal intelligent bidding data processing method and system
CN107944768A (en) * 2017-12-18 2018-04-20 扬州大学 A kind of method for allocating tasks under overlapping coalition formation based on negotiation
CN108846577B (en) * 2018-06-14 2021-11-05 河南科技大学 A group task assignment method based on situational analysis
CN109493180A (en) * 2018-11-13 2019-03-19 合肥工业大学 The method and system of empty day resource cotasking planning under price competition mechanism
CN109447509A (en) * 2018-11-13 2019-03-08 合肥工业大学 The method and system of empty day resource cotasking planning under price negotiation mechanism
CN109409771B (en) * 2018-11-13 2024-04-12 合肥工业大学 Space resource collaborative task planning method and system with adjustable task price
CN109493179A (en) * 2018-11-13 2019-03-19 合肥工业大学 The method and system of the empty day resource cotasking planning of task based access control demand
CN110430547B (en) * 2019-07-24 2022-07-15 河海大学常州校区 A multi-AUV collaborative data collection method based on Q-learning in UASNs
CN111199360B (en) * 2020-01-13 2023-05-05 西安电子科技大学 UAV task assignment planning method
CN111328029A (en) * 2020-03-14 2020-06-23 杭州鸿晶自动化科技有限公司 Decentralized task redistribution method and device
CN116307453A (en) * 2022-12-14 2023-06-23 佛山市南海区广工大数控装备协同创新研究院 Task planning method, system and related equipment for multi-heterogeneous robot collaborative operation
CN116452306B (en) * 2023-03-03 2023-10-10 中国人民解放军军事科学院系统工程研究院 A bidding distribution method for intelligent combat tasks

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035040A (en) * 2007-02-02 2007-09-12 南京邮电大学 Radio sensor network data collection method based on multi-agent negotiation
CN101442459A (en) * 2008-03-05 2009-05-27 中科院嘉兴中心微系统所分中心 Networking scheme with high expansibility for wireless sensor network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035040A (en) * 2007-02-02 2007-09-12 南京邮电大学 Radio sensor network data collection method based on multi-agent negotiation
CN101442459A (en) * 2008-03-05 2009-05-27 中科院嘉兴中心微系统所分中心 Networking scheme with high expansibility for wireless sensor network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9335816B2 (en) 2011-12-23 2016-05-10 Globalfoundries Inc. System and method for efficient service-instance oriented energy management in the internet of things

Also Published As

Publication number Publication date
CN101815326A (en) 2010-08-25

Similar Documents

Publication Publication Date Title
CN101815326B (en) Method for allocating tasks in wireless sensor network based on negotiation
Han et al. A grid-based joint routing and charging algorithm for industrial wireless rechargeable sensor networks
CN102014439A (en) Task allocation method and device for clustered wireless sensor network based on contract net
CN110620611A (en) Cooperative spectrum sensing method based on GEO and LEO double-layer satellite network
CN102149160A (en) Energy perception routing algorithm used for wireless sensing network
CN106658642B (en) Energy heterogeneous wireless sensor network clustering method and system
CN103228022A (en) Probability type wireless sensor network routing method based on energy harvesting
CN107257572A (en) A kind of cluster routing method of wireless sense network
CN102014455A (en) Wireless sensor network clustering routing method based on correlation among nodes
CN105430598B (en) The data hierarchy transmission method and device of wireless sensor network
CN102711180B (en) Cluster head multiple selection energy balance routing method
CN104135752A (en) Cluster head node selection method and clustering method of wireless sensor network
CN107820295B (en) User demand-based distributed relay resource allocation method
CN103702384B (en) Application-oriented clustering routing method of wireless sensor network
TWI473522B (en) Method and system for hierarchical clustering of wireless sensor networks
CN102685688B (en) Wireless sensor network clustering method based on first-price-sealed bid auction
CN102104522A (en) Real-time communication optimizing method and equipment orienting to cyber-physical system
CN103945508A (en) Wireless-sensing-network topology construction method based on probability comparison
CN103686777A (en) A Cooperative Solving Method for Complex Tasks in Wireless Sensor Networks Based on Reverse Auction Strategy
CN103685558A (en) Wireless sensor network and task processing method thereof
CN104168631B (en) Wireless sensor network energy consumption balance covering scheduling and routing cross-layer design method
CN103220757A (en) Optimal relay selection method based on two-way auction model
CN103427884B (en) Acquisition methods is worked in coordination with in multiple terminals based on service generation ubiquitous in mobile ad hoc network
CN105898821A (en) Adaptive clustering method based on active threshold setting
CN104066144B (en) A kind of priority retransmission method based on number of path

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110615

Termination date: 20150111

EXPY Termination of patent right or utility model