// Numbas version: exam_results_page_options {"name": "Musa's SIT316 Week XXX Q3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Musa's SIT316 Week XXX Q3", "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": {}, "extensions": [], "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", "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/"}]}]}], "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/"}]}