// Numbas version: exam_results_page_options {"name": "SIT316 Integer Programming - Quiz", "metadata": {"description": "", "licence": "None specified"}, "duration": 0, "percentPass": "0", "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": "1", "questionNames": ["", "", "", "", ""], "questions": [{"name": "Musa's SIT316 Week XXX Q1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

This question tests the student's ability to model and solve Integer Programming problems

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c36": {"name": "c36", "group": "Part b", "definition": "random(6..45)", "description": "", "templateType": "anything", "can_override": false}, "a32": {"name": "a32", "group": "Part b", "definition": "random(2..36)", "description": "", "templateType": "anything", "can_override": false}, "s75": {"name": "s75", "group": "Part b", "definition": "random(5..80)", "description": "", "templateType": "anything", "can_override": false}, "v100": {"name": "v100", "group": "Part b", "definition": "random(100..110)", "description": "", "templateType": "anything", "can_override": false}, "sc6": {"name": "sc6", "group": "Part b", "definition": "random(6..8)", "description": "", "templateType": "anything", "can_override": false}, "sa4": {"name": "sa4", "group": "Part b", "definition": "random(4..6)", "description": "", "templateType": "anything", "can_override": false}, "vc4": {"name": "vc4", "group": "Part b", "definition": "random(3..5)", "description": "", "templateType": "anything", "can_override": false}, "va4": {"name": "va4", "group": "Part b", "definition": "random(2..4)", "description": "", "templateType": "anything", "can_override": false}, "k1": {"name": "k1", "group": "Part b", "definition": "random(1..3)", "description": "", "templateType": "anything", "can_override": false}, "k2": {"name": "k2", "group": "Part b", "definition": "k1", "description": "", "templateType": "anything", "can_override": false}, "k3": {"name": "k3", "group": "Part b", "definition": "random(10..15)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Part b", "definition": "random(3..6)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Part b", "definition": "random(4..6)", "description": "", "templateType": "anything", "can_override": false}, "a1": {"name": "a1", "group": "Part b", "definition": "b1+random(2..3)", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "Part b", "definition": "b1+1", "description": "", "templateType": "anything", "can_override": false}, "x1": {"name": "x1", "group": "Part b", "definition": "random(2..5)", "description": "", "templateType": "anything", "can_override": false}, "x2": {"name": "x2", "group": "Part b", "definition": "random(5..8)", "description": "", "templateType": "anything", "can_override": false}, "v1": {"name": "v1", "group": "Part b", "definition": "a1*x1+b2*x2", "description": "", "templateType": "anything", "can_override": false}, "v2": {"name": "v2", "group": "Part b", "definition": "b1*x1+b2*x2", "description": "", "templateType": "anything", "can_override": false}, "c361": {"name": "c361", "group": "Part b", "definition": "v1*k1", "description": "", "templateType": "anything", "can_override": false}, "a321": {"name": "a321", "group": "Part b", "definition": "v2*k2", "description": "", "templateType": "anything", "can_override": false}, "s751": {"name": "s751", "group": "Part b", "definition": "k3*c1", "description": "", "templateType": "anything", "can_override": false}, "v1001": {"name": "v1001", "group": "Part b", "definition": "k3*b2", "description": "", "templateType": "anything", "can_override": false}, "sc61": {"name": "sc61", "group": "Part b", "definition": "k1*a1", "description": "", "templateType": "anything", "can_override": false}, "sa41": {"name": "sa41", "group": "Part b", "definition": "b1*k2", "description": "", "templateType": "anything", "can_override": false}, "vc41": {"name": "vc41", "group": "Part b", "definition": "b2*k1", "description": "", "templateType": "anything", "can_override": false}, "va41": {"name": "va41", "group": "Part b", "definition": "b2*k2", "description": "", "templateType": "anything", "can_override": false}, "fv": {"name": "fv", "group": "Part b", "definition": "k3*c1*x1+k3*b2*x2", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Part b", "variables": ["c36", "a32", "s75", "v100", "sc6", "sa4", "vc4", "va4", "k1", "k2", "k3", "b2", "b1", "a1", "c1", "x1", "x2", "v1", "v2", "c361", "a321", "s751", "v1001", "sc61", "sa41", "vc41", "va41", "fv"]}, {"name": "part a", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

P-{c36}{a32}{s75}: You are in charge of renting Suburbans and vans for your family reunion. You know that at least {c361} children (all 7 years old and younger) are attending and that at least {a321} adults (the rest that have not confirmed have no children) are attending. Each Suburban accommodates {sc61} children, {sa41} adults and costs {s751} \\$ to rent. Each van accommodates {vc41} children, {va41} adults and costs {v1001} \\$ to rent.

\n

Set-up the linear programming problem using variables x1, x2, ...

\n

A. Objective:[[0]] [[1]]

\n


B. Give the system of constraints:

\n

for children: [[2]]$\\ge$[[9]]

\n

for adults: [[3]]$\\ge$[[10]]

\n

\n

C. Range of varables:

\n

$x_1$ is [[4]]  

\n

$x_2$ is [[5]]

\n


D. How many Suburbans and vans should be
rented to minimize cost?

\n

Suburbans: [[6]],  Vans: [[7]]

\n


E. What is the minimum cost? [[8]]

\n

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Maximize", "Minimize"], "matrix": [0, "1"], "distractors": ["", ""]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{v1001}x2+{s751}x1", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sc61}x1+{vc41}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sa41}x1+{va41}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "0 or any positive integer", "Any positive number", "Any negative number"], "matrix": [0, 0, "0.5", 0, 0], "distractors": ["", "", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "0 or any positive integer", "Any positive number", "Any negative number"], "matrix": [0, 0, "0.5", 0, 0], "distractors": ["", "", "", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x1", "maxValue": "x1", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "x2", "maxValue": "x2", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "fv", "maxValue": "fv", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{c361}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{a321}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Musa's SIT316 Week XXX Q2", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

This question tests the student's ability to model and solve Integer Programming problems

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"v20": {"name": "v20", "group": "part a", "definition": "random(15..25)", "description": "", "templateType": "anything"}, "p15": {"name": "p15", "group": "part a", "definition": "v20-random(3..7)", "description": "", "templateType": "anything"}, "b6": {"name": "b6", "group": "part a", "definition": "random(3..8 except p15)", "description": "", "templateType": "anything"}, "c013": {"name": "c013", "group": "part a", "definition": "random(0.10,0.11,0.12,0.13,0.14,0.15,0.16)", "description": "", "templateType": "anything"}, "c017": {"name": "c017", "group": "part a", "definition": "random(0.17,0.18,0.19,0.20,0.21,0.22)", "description": "", "templateType": "anything"}, "v15": {"name": "v15", "group": "part a", "definition": "random(11..19)", "description": "", "templateType": "anything"}, "p30": {"name": "p30", "group": "part a", "definition": "random(26..34)", "description": "", "templateType": "anything"}, "b20": {"name": "b20", "group": "part a", "definition": "random(16..24)", "description": "", "templateType": "anything"}, "v2250": {"name": "v2250", "group": "part a", "definition": "random(2230..2270)", "description": "", "templateType": "anything"}, "p3000": {"name": "p3000", "group": "part a", "definition": "random(2980..3020)", "description": "", "templateType": "anything"}, "b1600": {"name": "b1600", "group": "part a", "definition": "random(1580..1620)", "description": "", "templateType": "anything"}, "p151": {"name": "p151", "group": "part a", "definition": "kp*15", "description": "", "templateType": "anything"}, "v201": {"name": "v201", "group": "part a", "definition": "kv*20", "description": "", "templateType": "anything"}, "b61": {"name": "b61", "group": "part a", "definition": "kb*6", "description": "", "templateType": "anything"}, "c0131": {"name": "c0131", "group": "part a", "definition": "0.13*kc", "description": "", "templateType": "anything"}, "c0171": {"name": "c0171", "group": "part a", "definition": "0.17*kc", "description": "", "templateType": "anything"}, "v151": {"name": "v151", "group": "part a", "definition": "15*kv", "description": "", "templateType": "anything"}, "p301": {"name": "p301", "group": "part a", "definition": "30*kp", "description": "", "templateType": "anything"}, "b201": {"name": "b201", "group": "part a", "definition": "20*kb", "description": "", "templateType": "anything"}, "v22501": {"name": "v22501", "group": "part a", "definition": "2250*kv", "description": "", "templateType": "anything"}, "p30001": {"name": "p30001", "group": "part a", "definition": "3000*kp", "description": "", "templateType": "anything"}, "b16001": {"name": "b16001", "group": "part a", "definition": "kb*random(1500,1520,1540,1550,1560,1580,1600)", "description": "", "templateType": "anything"}, "kv": {"name": "kv", "group": "part a", "definition": "random(0.2,1,2)", "description": "", "templateType": "anything"}, "kp": {"name": "kp", "group": "part a", "definition": "random(0.2,1,2)", "description": "", "templateType": "anything"}, "kb": {"name": "kb", "group": "part a", "definition": "random(0.5,1,2)", "description": "", "templateType": "anything"}, "kc": {"name": "kc", "group": "part a", "definition": "random(1..10)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "part a", "variables": ["p15", "v20", "b6", "c013", "c017", "v15", "p30", "b20", "v2250", "p3000", "b1600", "p151", "v201", "b61", "c0131", "c0171", "v151", "p301", "b201", "v22501", "p30001", "b16001", "kv", "kp", "kb", "kc"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

A patient’s doctor advises her to buy two types of pills that will replenish the deficiency of vitamin A, potassium and beta carotene in her diet. Each type of Pill I contains {v201} units of vitamin A, {p151} units of potassium, {b61} units of beta carotene, and costs {c0131} \\$. Each type of Pill II contains {v151} unit of vitamin A, {p301} units of potassium, {b201} units of beta carotene, and costs {c0171} \\$. The patient needs a minimum of {v22501} units of vitamin A, a minimum of {p30001} units of potassium and a minimum of {b16001} units of beta carotene. She wishes to minimize the cost of the pills.

\n

Formulate the linear programming problem using variables x1 (for $x_1$ Pill I), ...

\n

Put \">=\" for \"$\\ge$\" and \"<=\" for \"$\\le$\".

\n

\n

A. Objective:[[0]] [[1]]

\n


B. Give the system of constraints:

\n

for vitamin A: [[2]]$\\ge$[[10]]

\n

for potassium: [[3]]$\\ge$[[11]]

\n

for beta carotene [[4]]$\\ge$[[12]]

\n

\n

C. Range of varables:

\n

$x_1$ is [[5]]  

\n

$x_2$ is [[6]]

\n

D. Optimal solution: $x_1$ = [[7]],  $x_1$ = [[8]]

\n

E. Minimal cost: [[9]]

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Maximize", "Minimize"], "matrix": ["0", "1"], "distractors": ["", ""]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{c0131}x1+{c0171}x2", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{v201}x1+{v151}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{p151}x1+{p301}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{b61}x1+{b201}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "0 or any positive integer", "Any positive number", "Any negative number"], "matrix": [0, 0, "0.5", 0, 0], "distractors": ["", "", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "0 or any positive integer", "Any positive number", "Any negative number"], "matrix": [0, 0, "0.5", 0, 0], "distractors": ["", "", "", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "60", "maxValue": "60", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "70", "maxValue": "70", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{c0131}*60+{c0171}*70", "maxValue": "{c0131}*60+{c0171}*70", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{v22501} ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{p30001}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{b16001}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Musa's SIT316 Week XXX Q3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

This question tests the student's ability to model and solve Integer Programming problems

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"c15": {"name": "c15", "group": "part a", "definition": "random(10..20)", "description": "", "templateType": "anything"}, "f2": {"name": "f2", "group": "part a", "definition": "random(1.5,2,2.2,2.5)", "description": "", "templateType": "anything"}, "p10": {"name": "p10", "group": "part a", "definition": "random(8..12 except c15)", "description": "", "templateType": "anything"}, "f1": {"name": "f1", "group": "part a", "definition": "random(0.5,1,1.2,1.5)", "description": "", "templateType": "anything"}, "c6": {"name": "c6", "group": "part a", "definition": "random(4..8)", "description": "", "templateType": "anything"}, "p2": {"name": "p2", "group": "part a", "definition": "random(1.5,1.9,2.3,2.5)", "description": "", "templateType": "anything"}, "c90": {"name": "c90", "group": "part a", "definition": "random(80..99)", "description": "", "templateType": "anything"}, "p50": {"name": "p50", "group": "part a", "definition": "random(40..60)", "description": "", "templateType": "anything"}, "kf": {"name": "kf", "group": "part a", "definition": "random(0.8,0.9,1,1.1,1.2,1.3,1.4,1.5)", "description": "", "templateType": "anything"}, "f21": {"name": "f21", "group": "part a", "definition": "kf*2", "description": "", "templateType": "anything"}, "f11": {"name": "f11", "group": "part a", "definition": "kf*1", "description": "", "templateType": "anything"}, "c151": {"name": "c151", "group": "part a", "definition": "15*k1", "description": "", "templateType": "anything"}, "p101": {"name": "p101", "group": "part a", "definition": "10*k2", "description": "", "templateType": "anything"}, "c61": {"name": "c61", "group": "part a", "definition": "6*k1", "description": "", "templateType": "anything"}, "p21": {"name": "p21", "group": "part a", "definition": "2*k2", "description": "", "templateType": "anything"}, "c901": {"name": "c901", "group": "part a", "definition": "90*k1", "description": "", "templateType": "anything"}, "p501": {"name": "p501", "group": "part a", "definition": "50*k2", "description": "", "templateType": "anything"}, "k1": {"name": "k1", "group": "part a", "definition": "random(1..3)", "description": "", "templateType": "anything"}, "k2": {"name": "k2", "group": "part a", "definition": "random(1..3)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "part a", "variables": ["f2", "c15", "p10", "f1", "c6", "p2", "c90", "p50", "kf", "f21", "f11", "c151", "p101", "c61", "p21", "c901", "p501", "k1", "k2"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

An athlete wants cut out as much fat from his diet as possible. He wants to combine two diet plans. Each ounce of Diet Plan I contains {f21} grams of fat, {c151} grams of carbohydrates and {p101} grams of protein. Each ounce of Diet Plan II contains {f11} gram of fat, {c61} grams of carbohydrates and {p21} grams of protein. He’s decided that each day he would like to take in at least {c901} grams of carbohydrates and a maximum of {p501} grams of protein.

\n

Formulate the linear programming problem using variables x1 (for $x_1$ Plan I), ...

\n

Put \">=\" for \"$\\ge$\" and \"<=\" for \"$\\le$\".

\n

\n

A. Objective:[[0]] [[1]]

\n


B. Give the system of constraints:

\n

for carbohydrates: [[2]]$\\ge$[[9]]

\n

for protein: [[3]]$\\le$[[10]]

\n

\n

C. Range of varables:

\n

$x_1$ is [[4]]

\n

$x_2$ is[[5]]

\n

D. Optimal solution: $x_1=$ [[6]],  $x_2=$ [[7]]

\n

E. The minimum number of grams of fat taken in per day is [[8]]

\n

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Maximize", "Minimize"], "matrix": ["0", "1"], "distractors": ["", ""]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{f21}x1+{f11}x2", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{c151}x1+{c61}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{p101}x1+{p21}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "Any positive integer", "0 or any positive number", "Any positive number"], "matrix": [0, 0, 0, "0.5", 0], "distractors": ["", "", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "Any positive integer", "0 or any positive number", "Any positive number"], "matrix": [0, 0, 0, "0.5", 0], "distractors": ["", "", "", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "4", "maxValue": "4", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "5", "maxValue": "5", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{f21}*4+5*{f11}", "maxValue": "{f21}*4+5*{f11}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{c901}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{p501} ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Musa's SIT316 Week XXX Q4", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

This question tests the student's ability to model and solve Integer Programming problems

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"v260": {"name": "v260", "group": "part a", "definition": "k1*260", "description": "", "templateType": "anything"}, "b160": {"name": "b160", "group": "part a", "definition": "k2*160", "description": "", "templateType": "anything"}, "av2": {"name": "av2", "group": "part a", "definition": "2*k1", "description": "", "templateType": "anything"}, "ab4": {"name": "ab4", "group": "part a", "definition": "4*k2", "description": "", "templateType": "anything"}, "as3": {"name": "as3", "group": "part a", "definition": "9*k", "description": "", "templateType": "anything"}, "bv4": {"name": "bv4", "group": "part a", "definition": "4*k1", "description": "", "templateType": "anything"}, "bb2": {"name": "bb2", "group": "part a", "definition": "2*k2", "description": "", "templateType": "anything"}, "bs3": {"name": "bs3", "group": "part a", "definition": "8*k", "description": "", "templateType": "anything"}, "k": {"name": "k", "group": "part a", "definition": "random(1..5)", "description": "", "templateType": "anything"}, "k1": {"name": "k1", "group": "part a", "definition": "random(1..3)", "description": "", "templateType": "anything"}, "k2": {"name": "k2", "group": "part a", "definition": "random(1..3)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "part a", "variables": ["v260", "b160", "av2", "ab4", "as3", "bv4", "bb2", "bs3", "k", "k1", "k2"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

You are a nutritionist at a nursing home and a few elderly need more vitamin A and biotin in their diet. Two brands of pills will be suitable. You advise them to take at least {v260} units of vitamin A and at least {b160} units of biotin over a period of time. The number of units of vitamin A, biotin and sodium in each pill of each brand is given below:

\n

Brand 1: {av2} units of vitamin A, {ab4} units of biotin and {as3} units of sodium

\n

Brand 2: {bv4} units of vitamin A, {bb2} units of biotin and {bs3} units of sodium.

\n

The amount of sodium in their diet must be minimized. Formulate the linear programming problem using variables x1 (for $x_1$ Brand 1 pills), ...

\n

Put \">=\" for \"$\\ge$\" and \"<=\" for \"$\\le$\".

\n

\n

A. Objective:[[0]] [[1]]

\n


B. Give the system of constraints:

\n

for vitamin A: [[2]]$\\ge$[[9]]

\n

for biotin: [[3]]$\\ge$[[10]]

\n

\n

C. Range of varables:

\n

$x_1$ is [[4]]

\n

$x_2$ is[[5]]

\n

D. Optimal number of pills: Brand 1 $x_1$ = [[6]],  Brand 2: $x_1$ = [[7]]

\n

E. The minimum sodium intake is [[8]]

\n

", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Maximize", "Minimize"], "matrix": ["0", "1"], "distractors": ["", ""]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{as3}x1+{bs3}x2", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{av2}x1+{bv4}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.8", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{ab4}x1+{bb2}x2 ", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "x1", "value": ""}, {"name": "x2", "value": ""}]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "Any positive integer", "0 or any positive integer", "Any positive number"], "matrix": [0, 0, 0, "0.5", 0], "distractors": ["", "", "", "", ""]}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Any number", "Integer", "Any positive integer", "0 or any positive integer", "Any positive number"], "matrix": [0, 0, 0, "0.5", 0], "distractors": ["", "", "", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "10", "maxValue": "10", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "60", "maxValue": "60", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{as3}*10+{bs3}*60", "maxValue": "{as3}*10+{bs3}*60", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{v260}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{b160}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Musa's SIT316 Week XXX Q5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Lauren Richards", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1589/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "tags": [], "metadata": {"description": "

This question tests the student's ability to model and solve Integer Programming problems

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "variables": {"k": {"name": "k", "group": "part a", "definition": "random(1..5)", "description": "", "templateType": "anything"}, "kx": {"name": "kx", "group": "part a", "definition": "k*random(6..18)", "description": "", "templateType": "anything"}, "ky": {"name": "ky", "group": "part a", "definition": "k*10", "description": "", "templateType": "anything"}, "k5": {"name": "k5", "group": "part a", "definition": "random(1..7)", "description": "", "templateType": "anything"}, "k6": {"name": "k6", "group": "part a", "definition": "random(-10..-5)", "description": "", "templateType": "anything"}, "k1": {"name": "k1", "group": "part a", "definition": "random(0.1,0.2,0.3)", "description": "", "templateType": "anything"}, "k22": {"name": "k22", "group": "part a", "definition": "random(0.1,0.2,0.3)", "description": "", "templateType": "anything"}, "k2": {"name": "k2", "group": "part a", "definition": "random(0.6,0.7,0.8,0.9)", "description": "", "templateType": "anything"}, "k11": {"name": "k11", "group": "part a", "definition": "random(0.6,0.7,0.8,0.9)", "description": "", "templateType": "anything"}, "s": {"name": "s", "group": "part a", "definition": "k2*a+k1*b+k1*k2", "description": "", "templateType": "anything"}, "a": {"name": "a", "group": "part a", "definition": "random(10..25)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "part a", "definition": "random(5..15)", "description": "", "templateType": "anything"}, "ss": {"name": "ss", "group": "part a", "definition": "k22*a+k11*b+k11*k22", "description": "", "templateType": "anything"}, "k7": {"name": "k7", "group": "part a", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "k8": {"name": "k8", "group": "part a", "definition": "random(2..6)", "description": "", "templateType": "anything"}, "sss": {"name": "sss", "group": "part a", "definition": "k7*a-k8*b+k7*k8", "description": "", "templateType": "anything"}, "fv": {"name": "fv", "group": "part a", "definition": "kx*a + ky*b", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "part a", "variables": ["k", "kx", "ky", "k5", "k6", "k1", "k22", "k2", "k11", "s", "a", "b", "ss", "k7", "k8", "sss", "fv"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Solve the following Integer Programming problem:

\n

Maximize: $\\simplify{{kx} x + {ky} y}$

\n

Subject to

\n

$ \\simplify{{k5} x - y} \\ge  \\var{k6}$

\n

$ \\simplify{100*{k2} x  + 100*{k1} y} \\le  \\var{100*s}$

\n

$ \\simplify{100*{k22} x + 100*{k11}y} \\le \\var{100*ss} $

\n

$ \\simplify{{k7} x  - {k8} y} \\le  \\var{sss}$

\n

$x,y \\ge 0$

\n

\n

Optimal solution: $x=$[[0]],  $y=$[[1]]

\n

Minimum function value: [[2]]

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{a}", "maxValue": "{a}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{b}", "maxValue": "{b}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "{kx*a + ky*b}", "maxValue": "{kx*a + ky*b}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": false, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "contributors": [{"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}], "extensions": [], "custom_part_types": [], "resources": []}