A Personal Assignment Problem Solved By The Branch-And-Bound Strategy

Problem

    A linearly ordered set of persons P = {P1, P2, ... , Pn}, where P1 < P2 < ... < Pn.

    A set of jobs J = {J1, J2, ... , Jn}, partially ordered.

    Cost Cij is equal to the cost of assigning Pi to Jj. 

    Each Person is assigned to a job, and no two persons are assigned to the same job.

    We require that if f(Pi) <= f(Pj), then Pi <= Pj.

The function is a feasible assignment which maps persons to their appropriate jobs.

Our Problem is to find an optimal feasible assignment which minimizes the total cost of assignments

[NP-hard]

J must be a topologically sorted  sequence with respect to the partial ordering of jobs.

(each sequence represents a feasible assignment.)

[tree searching techniques can be easily used to find all the topologically sorted sequences.]

(1) Take an element which is not preceded by any other element in the partial ordering.

(2) Select this element as an element in a topologically sorted sequence.

(3) Remove this element just selected from the partial ordering set. The resulting set is still partially ordered

[apply the branch-and-bound strategy]

Given a cost matrix, 

->a reduced cost matrix

we can compute a lower bound of our solutions immediately.

Note: if a constant is subtracted from any row or any column of the cost matrix, an optimal solution does not change.

The resulting matrix is a reduced cost matrix in which every row and column contains at least one zero and the remaining entries of the matrix are all non-negative.

--Why did we subtract costs from the cost matrix?

--A higher lower bound will of course lead to an early termination!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
In Verilog, a non-net refers to a variable that is not a wire or a register, but rather a constant or a parameter. Concurrent assignment refers to the assignment of a value to a variable using the "=" operator in a module outside of any procedural blocks (such as always or initial blocks). A concurrent assignment to a non-net is not allowed in Verilog. This is because a non-net does not have a storage element and cannot hold a value assigned to it. Instead, it is typically used as a constant or a parameter that is available for use in the module. To assign a value to a non-net, it should be done within a procedural block using the appropriate assignment operator (such as "<=" for registers or "assign" for wires). Alternatively, the value can be passed as an argument to the module using the parameter keyword. For example: module my_module #(parameter WIDTH = 8) ( input clk, input [WIDTH-1:0] data_in, output [WIDTH-1:0] data_out ); // This is a non-net parameter parameter ADD_VALUE = 5; // This is a register that can be assigned using the "=" operator within an always block reg [WIDTH-1:0] register_data; always @(posedge clk) begin register_data <= data_in + ADD_VALUE; end // This is a wire that can be assigned using the "assign" keyword assign data_out = register_data; endmodule In this example, ADD_VALUE is a non-net parameter that is used in the always block to add a constant value to the input data. The register_data variable is assigned using the "=" operator within the always block. The data_out wire is assigned using the "assign" keyword.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值