Question

In: Statistics and Probability

    For questions 2 – 8:   There are three projects.  Binary variablesX1, X2, and X3are defined as follows:...

    For questions 2 – 8:  

There are three projects.  Binary variablesX1, X2, and X3are defined as follows:

Xi=     1 if project i is selected, and

Xi=     0 if project i is not selected,           for i = 1, 2, 3.

2. Write a constraint to represent: “At least one of the three projects must be selected”.

3. Write a constraint to represent: “Between project 1 and project 2, exactly one is selected”.

4. Write a constraint to represent: “At most two projects of the three can be selected”.

5. Write a constraint to represent: “Project 2 and project 3 must go together.  That is, it is not allowed to select one while deselect the other”.

6. Write a constraint to represent: “The three projects can not be all selected.  There must be at least one that is not selected”.

7. Write a constraint to represent: “If project 2 is selected, then project 1 must be selected; but if project 2 is not selected, then there is no restriction on project 1”.

8. (Bonus question) Write a constraint to represent: “If project 1 is not selected, then project 2 must not be selected; but if project 1 is selected, then there is no restriction on project 2”.

Solutions

Expert Solution

2. If at least one project must be selected then it implies that at least one of X1, X2 or X3 will have a value of 1.

X1+X2+X3 >= 1

3. If X1 = 1 then X2 =0 and if X2=1 then X1=0. Thus their sum is always 1.

X1 + X2 = 1

4. The compliment of selection of at most two of three projects is the selection of all three projects, in which all three will have a value of 1 and thus add up to 3. Hence, if we don't want all three to be selected, we can put a constraint that the sum of all three must be less than 3.

X1 + X2 + X3 < 3

5. We need to make sure that both X2 and X3 have the same value, i.e. either both 0 or both 1.

A constraint which satisfies the criteria is:

X2*(1-X3) + X3*(1-X2) = 0

Let's verify the above constraint. There are 4 cases:

I. Both X2 and X3 are zero. In this case, the above expression is clearly zero.

II. Both are one. In this case also, the above expression is zero.

III. X2 is 1 while X3 is 0.  The expression gives 1 in this case and thus violates our constraint.

IV. X2 is 0 while X3 is 1.  The expression gives 1 in this case and thus violates our constraint.


Related Solutions

A binary tree data type is defined in OCaml as follows: type 'a binary_tree = |...
A binary tree data type is defined in OCaml as follows: type 'a binary_tree = | Empty | Node of 'a * 'a binary_tree * 'a binary_tree;; The mirror of a binary tree is defined as the tree obtained by reversing its left and right subtrees at each level. Write an OCaml function is_mirror: 'a binary_tree -> 'a binary_tree -> bool = <fun> to determine if one tree is the mirror of another. Your function must take into account the...
Iggy Company is considering three capital expenditure projects. Relevant data for the projects are as follows....
Iggy Company is considering three capital expenditure projects. Relevant data for the projects are as follows. Project Investment Annual Income Life of Project 22A $240,600 $17,220 6 years 23A 271,400 21,000 9 years 24A 284,100 15,700 7 years Annual income is constant over the life of the project. Each project is expected to have zero salvage value at the end of the project. Iggy Company uses the straight-line method of depreciation. Click here to view the factor table. (a) Determine...
Iggy Company is considering three capital expenditure projects. Relevant data for the projects are as follows....
Iggy Company is considering three capital expenditure projects. Relevant data for the projects are as follows. Project Investment Annual Income Life of Project 22A $240,600 $17,220 6 years 23A 271,400 21,000 9 years 24A 284,100 15,700 7 years Annual income is constant over the life of the project. Each project is expected to have zero salvage value at the end of the project. Iggy Company uses the straight-line method of depreciation. Click here to view the factor table. (a) Determine...
Marigold Company is considering three capital expenditure projects. Relevant data for the projects are as follows....
Marigold Company is considering three capital expenditure projects. Relevant data for the projects are as follows. Project Investment Annual Income Life of Project 22A $243,300 $16,860 6 years 23A 274,200 20,730 9 years 24A 280,500 15,700 7 years Annual income is constant over the life of the project. Each project is expected to have zero salvage value at the end of the project. Marigold Company uses the straight-line method of depreciation. Click here to view PV table. (a) Determine the...
Iggy Company is considering three capital expenditure projects. Relevant data for the projects are as follows....
Iggy Company is considering three capital expenditure projects. Relevant data for the projects are as follows. Project Investment Annual Income Life of Project 22A $243,000 $16,720 6 years 23A 270,900 20,620 9 years 24A 283,300 15,700 7 years Annual income is constant over the life of the project. Each project is expected to have zero salvage value at the end of the project. Iggy Company uses the straight-line method of depreciation. Click here to view PV table. (a) Determine the...
Sophie's utility function is given as U = 2(x1)^(1/2) + 8(x2) where x1 and x2 represent...
Sophie's utility function is given as U = 2(x1)^(1/2) + 8(x2) where x1 and x2 represent the two goods Sophie consumes. Sophie's income is $3400 and the prices are given as x1 = $2 and x2 = $160 a) derive & represent in two separate diagrams the demand for x1 and x2 ( for any income and prices) b) If Sophie's income is increased to $6600, what is the income effect on x1? Is x2 a normal good? Justify your...
The set R^2 with addition and scalar multiplication defined by (x1, y1) + (x2, y2) =...
The set R^2 with addition and scalar multiplication defined by (x1, y1) + (x2, y2) = (x1 + x2, y1 + y2) c(x1, y1) = (cx1, y1) is not a vector space. Determine which axiom fails and find a counterexample that shows that it fails.
The factorial of a non-negative integer is defined as follows: n! = 1 × 2 ×...
The factorial of a non-negative integer is defined as follows: n! = 1 × 2 × ... × (n − 1) × n A. Write a function that takes an input value n and returns its factorial result n!. Ensure that your function returns an error statement if the input n is either a negative or a non-integer value. You cannot use the prod() or factorial() functions. The Euler number e is calculated as the sum of the infinite series...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
Is the following map linear? a) F(x1,x2,x3)=(0,0) b) L:R2→R2 defined by L(x1,x2)=(3x1−2x2,x2) c) f:R→R defined by...
Is the following map linear? a) F(x1,x2,x3)=(0,0) b) L:R2→R2 defined by L(x1,x2)=(3x1−2x2,x2) c) f:R→R defined by f(x)=2x
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT