IF YOU HAVE ANY DOUBTS COMMENT BELOW I WILL BE TTHERE TO HELP YOU..ALL THE BEST..
AS FOR GIVEN DATA.
a)
Let us use following notations to identify each of the nine positions in the grid
Let XJK = 1, if value assigned to grid XJ is K, otherwise XJK = 0 , where X = {A,B,C}, J = {1,2,3} and K = {1,2,3,...9}
For example, A11 = 1, if value of 1 is assigned to cell A1 in the above grid, otherwise A11 = 0
Mixed-interger linear programming model is following:
Max 0
s.t.
A11+A21+A31+B11+B21+B31+C11+C21+C31 = 1
A12+A22+A32+B12+B22+B32+C12+C22+C32 = 1
A13+A23+A33+B13+B23+B33+C13+C23+C33 = 1
A14+A24+A34+B14+B24+B34+C14+C24+C34 = 1
A15+A25+A35+B15+B25+B35+C15+C25+C35 = 1
A16+A26+A36+B16+B26+B36+C16+C26+C36 = 1
A17+A27+A37+B17+B27+B37+C17+C27+C37 = 1
A18+A28+A38+B18+B28+B38+C18+C28+C38 = 1
A19+A29+A39+B19+B29+B39+C19+C29+C39 = 1
A11+A12+A13+A14+A15+A16+A17+A18+A19 = 1
A21+A22+A23+A24+A25+A26+A27+A28+A29 = 1
A31+A32+A33+A34+A35+A36+A37+A38+A39 = 1
B11+B12+B13+B14+B15+B16+B17+B18+B19 = 1
B21+B22+B23+B24+B25+B26+B27+B28+B29 = 1
B31+B32+B33+B34+B35+B36+B37+B38+B39 = 1
C11+C12+C13+C14+C15+C16+C17+C18+C19 = 1
C21+C22+C23+C24+C25+C26+C27+C28+C29 = 1
C31+C32+C33+C34+C35+C36+C37+C38+C39 = 1
(1A11+2A12+3A13+4A14+5A15+6A16+7A17+8A18+9A19)+(1B11+2B12+3B13+4B14+5B15+6B16+7B17+8B18+9B19) = 12
(1B11+2B12+3B13+4B14+5B15+6B16+7B17+8B18+9B19)+(1C11+2C12+3C13+4C14+5C15+6C16+7C17+8C18+9C19) = 7
(1A21+2A22+3A23+4A24+5A25+6A26+7A27+8A28+9A29)+(1B21+2B22+3B23+4B24+5B25+6B26+7B27+8B28+9B29) = 8
(1A21+2A22+3A23+4A24+5A25+6A26+7A27+8A28+9A29)+(1A31+2A32+3A33+4A34+5A35+6A36+7A37+8A38+9A39) = 7
(1B21+2B22+3B23+4B24+5B25+6B26+7B27+8B28+9B29)+(1B31+2B32+3B33+4B34+5B35+6B36+7B37+8B38+9B39) = 14
(1A31+2A32+3A33+4A34+5A35+6A36+7A37+8A38+9A39)+(1B31+2B32+3B33+4B34+5B35+6B36+7B37+8B38+9B39) = 13
(1B31+2B32+3B33+4B34+5B35+6B36+7B37+8B38+9B39)+(1C31+2C32+3C33+4C34+5C35+6C36+7C37+8C38+9C39) = 15
All variables are binary
Solution using Excel Solver is following:
EXCEL FORMULAS:
Value | A1 | A2 | A3 | B1 | B2 | B3 | C1 | C2 | C3 | TOTAL |
1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | =SUM(B2:J2) |
2 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | =SUM(B3:J3) |
3 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | =SUM(B4:J4) |
4 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | =SUM(B5:J5) |
5 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | =SUM(B6:J6) |
6 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | =SUM(B7:J7) |
7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | =SUM(B8:J8) |
8 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | =SUM(B9:J9) |
9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | =SUM(B10:J10) |
TOTAL | =SUM(B2:B10) | =SUM(C2:C10) | =SUM(D2:D10) | =SUM(E2:E10) | =SUM(F2:F10) | =SUM(G2:G10) | =SUM(H2:H10) | =SUM(I2:I10) | =SUM(J2:J10) | =SUM(B11:J11) |
1 | 2 | 3 | ||||||||
A | =SUMPRODUCT(B2:B10,A2:A10) | =SUMPRODUCT(C2:C10,A2:A10) | =SUMPRODUCT(D2:D10,A2:A10) | =SUM(B14+B16) | = | 12 | ||||
=SUM(B16+B18) | = | 7 | ||||||||
B | =SUMPRODUCT(E2:E10,A2:A10) | =SUMPRODUCT(F2:F10,A2:A10) | =SUMPRODUCT(G2:G10,A2:A10) | =SUM(D14+D16) | = | 8 | ||||
=SUM(D14+F14) | = | 7 | ||||||||
C | =SUMPRODUCT(H2:H10,A2:A10) | =SUMPRODUCT(I2:I10,A2:A10) | =SUMPRODUCT(J2:J10,A2:A10) | =SUM(D16+F16) | = | 14 | ||||
=SUM(F14+F16) | = | 13 | ||||||||
=SUM(F16+F18) | = | 15 |
I HOPE YOU UNDERSTAND..
PLS RATE THUMBS UP..ITS HELPS ME ALOT..
THANK YOU...!!
Consider the problem in the below figure. Your goal is to find the places of the digits from 1 to 9 in grey cells i...
This is programming project 1 chapter 9(Book ISBN:1292222824 (1-292-22282-4) Walter Savitch Problem Solving with C++: Global Edition, 10/E) Question Do Programming Project 7 in Chapter 7 using a dynamic array. In this version of the problem, use dynamic arrays to store the ditits in each large integer. Allow an arbitrary number of digits instead of capping the number of digits at 20. TER 7/ Arrays time. For example digit at a the integer 1234 could be stored in the array...
Using the above described algorithm, create a program that: (IN PYTHON) 1.Asks the user which type of credit card he/she would like to find the checksum for. 2. Based on the user's choice of credit card, asks the user for the n digits of the credit card. [Get the input as a string; it's easier to work with the string, so don't convert to an integer.] 3. Using the user's input of the n digits, finds the last digit of...
1 Normal 1 No Spac H Paragraph HOW "FIT" IS YOUR DATA SET? Problem l: How random are your numbers? In this activity, find a friend, a family member or a class mate and ask them to give y 100 random digits (ranging from O to 9) from their head without the use of a calculat computer or a printed random table numbers. (3 4 4 2 1 64 8 9 078 6 555 etc) Then make a frequency table...
Problem 1 Write your code in the file MatrixOps.java. . Consider the following definitions from matrix algebra: A vector is a one-dimensional set of numbers, such as [42 9 20]. The dot product of two equal-length vectors A and B is computed by multiplying the first entry of A by the first entry of B, the second entry of A by the second entry of B, etc., and then summing these products. For example, the dot product of [42 9...
Given java code is below, please use it! import java.util.Scanner; public class LA2a { /** * Number of digits in a valid value sequence */ public static final int SEQ_DIGITS = 10; /** * Error for an invalid sequence * (not correct number of characters * or not made only of digits) */ public static final String ERR_SEQ = "Invalid sequence"; /** * Error for...
The extended specification of class Polynomial is shown below. You only need to implement the last four methods. The other features (i.e., constructor and operators) are given as part of the solution for tutorial 3. In the .cpp file for the new methods you need to include cmath that contains the definition of pow - raise to power.The goal of this problem set is to extend the solution of tutorial 3. In particular, we wish toadd methods to calculate a...
Your goal is to create an ‘Array’ class that is able to hold multiple integer values. The ‘Array’ class will be given functionality through the use of various overloaded operators You will be given the main() function for your program and must add code in order to achieve the desired result. Do not change any code in main(). If something is not working, you must change your own code, not the code in main(). Assignment 5: overloading member functions. Overview:...
Number your paper from 1-9 and list the correct letter choice/term for each statement. A. Disparagement B. Gaming the system C. Gatekeeping D. Moral duty E. Moral option F. Patient advocate G. Role fidelity H. Scope of practice I. Self-referral 1. To belittle or criticize the skills, knowledge, or qualifications of another professional. 2. One who investigates and medicates patients' problems and complaints in relation to their health care services. 3. A process in which a patient or the patient's...
Project 1, Program Design 1. Write a C program replace.c that asks the user to enter a three-digit integer and then replace each digit by the sum of that digit plus 6 modulus 10. If the integer entered is less than 100 or greater than 999, output an error message and abort the program. A sample input/output: Enter a three-digit number: 928 Output: 584 2. Write a C program convert.c that displays menus for converting length and calculates the result....