Reference no: EM132385776
Math 381 Writing Assignment - Executable Code & report
Please make sure to follow and include all components.
Let x=9.
Define a graph G = (V,E) as follows.
Let V = {1, 2, 3, . . . , 10}.
Define E = {(i, j): i, j ∈ V, i ≠ j, cos((i + j)(1 + x)) > 0}.
Create and solve (using lpsolve) an IP to find the chromatic number of G, χ(G).
Write a piece of code to generate the lpsolve input file.
Be sure to give a complete explanation of your method of solution.
Explicitly list your objective function and all constraints in your IP.
Include all code you write to solve the problem, and all software output.
You are welcome to use any programming language(s).
Please include the following components in this format:
1. Problem statement
2. Description of solution method including the mathematical formulation of the IP you will be using. Explain your method thoroughly.
3. Code to generate the lpsolve input file
4. The lpsolve input file. Be sure to truncate it: give one or two examples of each type of constraint, then remove the others, and indicate the number of constraints of each type removed.
5. Information about how you ran lpsolve on the above file, including run time and machine used, and the lpsolve solution output. Be sure to truncate it: leave out all variables which are equal to zero, and indicate that you have done this (e.g., "All other variables equal zero.").
6. Answer the question.
7. Include a figure that illustrates the feasibility of coloring your graph with the minimum number of colors you are claiming. Spend some time finding an arrangement of the vertices in the plane that makes the figure a little more readable (e.g., arranging the vertices in order around a circle will probably not result the best figure).
Attachment:- Assignment File - Executable Code & report.rar
|
What is grants taxable income
: Grant Company reported net income on its Income Statement of $46,000. Grant had reported expenses of $10,000 for business meals with clients.
|
|
The max depreciation allowed for 2019 and 2020 are
: On April 5, 2019, Kinsey places in service a new passenger automobile that cost $60,000. The car is used 100% for business in each tax year.
|
|
Post the journal entries to the accounts in the ledger
: Prepare journal entries to record each of the January transactions. Post the journal entries to the accounts in the ledger. Tom Zopf owns and manages a compute
|
|
Calculate the monthly quality-control cost
: Calculate the monthly quality-control cost to be assigned to the Satin Sheen product line under each of the following product-costing systems.
|
|
Write a piece of code to generate the lpsolve input file
: Math 381 Writing Assignment - Executable Code & report. Write a piece of code to generate the lpsolve input file
|
|
Compute the amount of overhead to be allocated to product
: Assume that the number of labor-hours required to assemble each box is 0.1 for pencils and 0.2 for pens and that 40,000 boxes of pencils and 80,000 boxes.
|
|
What year-end journal entry would figetakis record
: What year-end journal entry would Figetakis record assuming it takes the fair value option for valuing investments.On January 8, 20X8, Figetakis Inc., a large.
|
|
What journal entry should a corporation make to record
: What journal entry should A Corporation make to record the completion of the production process by the Waterproofing Department?
|
|
Loan Amortization and Capital Budgeting Problem
: Assignment - Loan Amortization and Capital Budgeting - Create an amortization table for each of the following loan types
|