// Numbas version: exam_results_page_options {"name": "SIT316-Constraint Programming - Q3", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "SIT316-Constraint Programming - Q3", "tags": [], "metadata": {"description": "", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a1": {"name": "a1", "group": "part a", "definition": "random(1..4)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "part a", "definition": "random(3..6)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "part a", "definition": "random(8..11)", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "part a", "definition": "random(12..16)", "description": "", "templateType": "anything", "can_override": false}, "a3": {"name": "a3", "group": "part a", "definition": "random(15..18)", "description": "", "templateType": "anything", "can_override": false}, "b3": {"name": "b3", "group": "part a", "definition": "random(5..8)", "description": "", "templateType": "anything", "can_override": false}, "c11": {"name": "c11", "group": "part a", "definition": "b2-b1", "description": "", "templateType": "anything", "can_override": false}, "c12": {"name": "c12", "group": "part a", "definition": "a1-a2", "description": "", "templateType": "anything", "can_override": false}, "c1": {"name": "c1", "group": "part a", "definition": "a1*b2-a2*b1", "description": "", "templateType": "anything", "can_override": false}, "c2": {"name": "c2", "group": "part a", "definition": "a2*b3-a3*b2", "description": "", "templateType": "anything", "can_override": false}, "c3": {"name": "c3", "group": "part a", "definition": "a1*b3-a3*b1", "description": "", "templateType": "anything", "can_override": false}, "c21": {"name": "c21", "group": "part a", "definition": "b3-b2", "description": "", "templateType": "anything", "can_override": false}, "c22": {"name": "c22", "group": "part a", "definition": "a2-a3", "description": "", "templateType": "anything", "can_override": false}, "c31": {"name": "c31", "group": "part a", "definition": "b3-b1", "description": "", "templateType": "anything", "can_override": false}, "c32": {"name": "c32", "group": "part a", "definition": "a1-a3", "description": "", "templateType": "anything", "can_override": false}, "xf1": {"name": "xf1", "group": "part a", "definition": "c31-c32*c11/c12 ", "description": "", "templateType": "anything", "can_override": false}, "f1": {"name": "f1", "group": "part a", "definition": "c3-c32*c1/c12", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "part a", "variables": ["a1", "b1", "a2", "b2", "a3", "b3", "c11", "c12", "c1", "c2", "c3", "c21", "c22", "c31", "c32", "xf1", "f1"]}], "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-{a1+1}{a2-1}{a3+2}{b1+2}{b2-2}{b3+1}: Is the following constraint satisfiable?

\n

$(\\simplify{{c11} X + {c12} Y = {c1}})$ $\\land$ $(\\simplify{{c21} X + {c22} Y = {c2}})$ $\\land$ $(\\simplify{{c31} X + {c32} Y} \\leq \\var{c3})$

\n

Step 1: Isolate $Y$ in the first primitive:

\n

$Y$ = [[0]]

\n

Step 2: Propagate:

\n

$(Y=$[[0]]$) \\land ($[[1]]$=  \\var{c2}) \\land ($[[2]]$\\leq \\var{c3})$

\n

\n

Step 3-Conclusion: We find that given constraint is satisfied for any number

\n

$X$[[5]][[3]]

\n

and $Y$ = [[4]]

\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": "{-c11/c12}*X+{c1/c12}", "showPreview": false, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": [{"name": "x", "value": ""}]}, {"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": "({c21 - c22*c11/c12})X+{c1*c22/c12}", "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": "x", "value": ""}]}, {"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": "({c31 - c32*c11/c12})X+{c1*c32/c12}", "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": "x", "value": ""}]}, {"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": "{(c2*c12-c1*c22)}/{(c21*c12-c11*c22)}", "maxValue": "{(c2*c12-c1*c22)}/{(c21*c12-c11*c22)}", "correctAnswerFraction": true, "allowFractions": true, "mustBeReduced": true, "mustBeReducedPC": 0, "showFractionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"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": "{-c11/c12}*X+{c1/c12}", "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": "x", "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": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["<=", ">="], "matrix": ["if(xf1>0,1,0)", "if(xf1<0,1,0)"], "distractors": ["", ""]}], "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/"}]}