// Numbas version: exam_results_page_options {"name": "Musa's Duality 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Musa's Duality 5", "tags": [], "metadata": {"description": "

Formulating duality problems

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "

\n

", "rulesets": {"ruleset0": []}, "extensions": [], "variables": {"c": {"name": "c", "group": "Ungrouped variables", "definition": "repeat(random(-15..15),9)", "description": "", "templateType": "anything"}, "a1": {"name": "a1", "group": "Ungrouped variables", "definition": "repeat(random(-15..15),9)", "description": "", "templateType": "anything"}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),9)", "description": "", "templateType": "anything"}, "randindex": {"name": "randindex", "group": "Ungrouped variables", "definition": "random(0..3)", "description": "", "templateType": "anything"}, "a20": {"name": "a20", "group": "Ungrouped variables", "definition": "random(-1..1)", "description": "", "templateType": "anything"}, "a21": {"name": "a21", "group": "Ungrouped variables", "definition": "random(-1..1)", "description": "", "templateType": "anything"}, "a22": {"name": "a22", "group": "Ungrouped variables", "definition": "random(-1..1)", "description": "", "templateType": "anything"}, "a23": {"name": "a23", "group": "Ungrouped variables", "definition": "random(1..2)", "description": "", "templateType": "anything"}, "aa1": {"name": "aa1", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),9)", "description": "", "templateType": "anything"}, "mm": {"name": "mm", "group": "Ungrouped variables", "definition": "random(\"Minimize\",\"Minimize\")", "description": "", "templateType": "anything"}, "mmd": {"name": "mmd", "group": "Ungrouped variables", "definition": "if(mm=\"Maximize\",\"Minimize\",\"Maximize\")", "description": "", "templateType": "anything"}, "aa2": {"name": "aa2", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),9)", "description": "", "templateType": "anything"}, "aa3": {"name": "aa3", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),9)", "description": "", "templateType": "anything"}, "aa4": {"name": "aa4", "group": "Ungrouped variables", "definition": "repeat(random(-5..5),9)", "description": "", "templateType": "anything"}, "a24": {"name": "a24", "group": "Ungrouped variables", "definition": "random(-1..3)", "description": "", "templateType": "anything"}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["c", "a1", "b", "randindex", "a20", "a21", "a22", "a23", "aa1", "mm", "mmd", "aa2", "aa3", "aa4", "a24"], "variable_groups": [], "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": "

Given LP problem: optimise $cx$ subject to constraints $Ax \\le/\\ge b,$ formulate the dual problem.

\n

\n

{mm}: $\\simplify {{c[0]}x_1+{c[1]}x_2+{c[2]}x_3+{c[3]}x_4+{c[4]}x_5} $

\n

Subject to:

\n

$\\simplify {{a1[0]}x_1+{a1[1]}x_2+{a1[2]}x_3+{a1[3]}x_4+{a1[4]}x_5} = \\var{b[0]}$

\n

$\\simplify {{a20}x_1+{a21}x_2+{a22}x_3+{a23}x_4+{a24}x_5} \\le \\var{b[1]}$

\n

$\\simplify {{aa1[0]}x_1+{aa1[1]}x_2+{aa1[2]}x_3+{aa1[3]}x_4+{aa1[4]}x_5} \\ge \\var{b[2]}$

\n

$\\simplify {{aa2[0]}x_1+{aa2[1]}x_2+{aa2[2]}x_3+{aa2[3]}x_4+{aa2[4]}x_5} = \\var{b[3]}$

\n

$\\simplify {{aa3[0]}x_1+{aa3[1]}x_2+{aa3[2]}x_3+{aa3[3]}x_4+{aa3[4]}x_5} \\ge \\var{b[4]}$

\n

$\\simplify {{aa4[0]}x_1+{aa4[1]}x_2+{aa4[2]}x_3+{aa4[3]}x_4+{aa4[4]}x_5} \\le \\var{b[5]}$

\n

$x_1,x_2,x_3,x_4,x_5 \\ge 0$

\n

\n

Formulate the dual problem (use variables \"y1,y2,...\" for $y_1,y_2,...$, and \">=\" or \"<=\" for $\\ge$ or $\\le$)

\n

assuming that dual variables $y_2,y_6 \\le 0$ and $y_3,y_5 \\ge 0$:

\n

\n

{mmd}:  [[0]]

\n

Subject to (express constraints in the form $A^T y \\ge c$):

\n

[[1]]$\\ge$[[6]]

\n

[[2]]$\\ge$[[7]]

\n

[[3]]$\\ge$[[8]]

\n

[[4]]$\\ge$[[9]]

\n

[[5]]$\\ge$[[10]]

\n

\n

\n

", "gaps": [{"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": "{b[0]}*y1+{b[1]}*y2+{b[2]}*y3+{b[3]}*y4+{b[4]}*y5+{b[5]}*y6}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "y1", "value": ""}, {"name": "y2", "value": ""}, {"name": "y3", "value": ""}, {"name": "y4", "value": ""}, {"name": "y5", "value": ""}, {"name": "y6", "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": "{a1[0]}y1 + {a20}y2 + {aa1[0]}y3 + {aa2[0]}y4 + {aa3[0]}y5 + {aa4[0]}y6", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "y1", "value": ""}, {"name": "y2", "value": ""}, {"name": "y3", "value": ""}, {"name": "y4", "value": ""}, {"name": "y5", "value": ""}, {"name": "y6", "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": "{a1[1]}y1 + {a21}y2 + {aa1[1]}y3 + {aa2[1]}y4 + {aa3[1]}y5 + {aa4[1]}y6", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "y1", "value": ""}, {"name": "y2", "value": ""}, {"name": "y3", "value": ""}, {"name": "y4", "value": ""}, {"name": "y5", "value": ""}, {"name": "y6", "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": "{a1[2]}y1 + {a22}y2 + {aa1[2]}y3 + {aa2[2]}y4 + {aa3[2]}y5 + {aa4[2]}y6", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "y1", "value": ""}, {"name": "y2", "value": ""}, {"name": "y3", "value": ""}, {"name": "y4", "value": ""}, {"name": "y5", "value": ""}, {"name": "y6", "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": "{a1[3]}y1 + {a23}y2 + {aa1[3]}y3 + {aa2[3]}y4 + {aa3[3]}y5 + {aa4[3]}y6", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "y1", "value": ""}, {"name": "y2", "value": ""}, {"name": "y3", "value": ""}, {"name": "y4", "value": ""}, {"name": "y5", "value": ""}, {"name": "y6", "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": "{a1[4]}y1 + {a24}y2 + {aa1[4]}y3 + {aa2[4]}y4 + {aa3[4]}y5 + {aa4[4]}y6", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "valuegenerators": [{"name": "y1", "value": ""}, {"name": "y2", "value": ""}, {"name": "y3", "value": ""}, {"name": "y4", "value": ""}, {"name": "y5", "value": ""}, {"name": "y6", "value": ""}]}, {"type": "numberentry", "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, "minValue": "{c[0]}", "maxValue": "{c[0]}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "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, "minValue": "{c[1]}", "maxValue": "{c[1]}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "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, "minValue": "{c[2]}", "maxValue": "{c[2]}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "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, "minValue": "{c[3]}", "maxValue": "{c[3]}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "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, "minValue": "{c[4]}", "maxValue": "{c[4]}", "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", "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}, {"name": "Timur Zaripov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3272/"}, {"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}