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

Solving continuous optimisation problems using Computational Packages

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

\n

", "rulesets": {"ruleset0": []}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"c1": {"name": "c1", "group": "Ungrouped variables", "definition": "vector(repeat(random(-2..5),n))", "description": "", "templateType": "anything", "can_override": false}, "A": {"name": "A", "group": "Ungrouped variables", "definition": "matrix([ li1, li2, li3, li4, li5 ])", "description": "", "templateType": "anything", "can_override": false}, "li1": {"name": "li1", "group": "Ungrouped variables", "definition": "vector(repeat(random(-2..5),n))", "description": "", "templateType": "anything", "can_override": false}, "mm": {"name": "mm", "group": "Ungrouped variables", "definition": "random(\"Maximize\",\"Maximize\")", "description": "", "templateType": "anything", "can_override": false}, "li2": {"name": "li2", "group": "Ungrouped variables", "definition": "vector(repeat(random(-2..5),n))", "description": "", "templateType": "anything", "can_override": false}, "li3": {"name": "li3", "group": "Ungrouped variables", "definition": "vector(repeat(random(-2..5),n))", "description": "", "templateType": "anything", "can_override": false}, "li4": {"name": "li4", "group": "Ungrouped variables", "definition": "vector(repeat(random(-2..5),n))", "description": "", "templateType": "anything", "can_override": false}, "li5": {"name": "li5", "group": "Ungrouped variables", "definition": "vector(repeat(random(-2..5),n))", "description": "", "templateType": "anything", "can_override": false}, "bb": {"name": "bb", "group": "Ungrouped variables", "definition": "repeat(random(0..6),n)", "description": "", "templateType": "anything", "can_override": false}, "b1": {"name": "b1", "group": "Ungrouped variables", "definition": "dot(vector(li1),x0) + bb[0]", "description": "", "templateType": "anything", "can_override": false}, "x0": {"name": "x0", "group": "Ungrouped variables", "definition": "vector(repeat(random(0..10),n))", "description": "", "templateType": "anything", "can_override": false}, "b2": {"name": "b2", "group": "Ungrouped variables", "definition": "dot(vector(li2),x0) + bb[1]", "description": "", "templateType": "anything", "can_override": false}, "b3": {"name": "b3", "group": "Ungrouped variables", "definition": "dot(vector(li3),x0) + bb[2]", "description": "", "templateType": "anything", "can_override": false}, "b4": {"name": "b4", "group": "Ungrouped variables", "definition": "dot(vector(li4),x0) + bb[3]", "description": "", "templateType": "anything", "can_override": false}, "b5": {"name": "b5", "group": "Ungrouped variables", "definition": "dot(vector(li5),x0) + bb[4]", "description": "", "templateType": "anything", "can_override": false}, "fv": {"name": "fv", "group": "Ungrouped variables", "definition": "dot(x0,vector(c1))", "description": "", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(10..15)", "description": "", "templateType": "anything", "can_override": false}, "c11": {"name": "c11", "group": "Ungrouped variables", "definition": "matrix([c1])", "description": "", "templateType": "anything", "can_override": false}, "bbb": {"name": "bbb", "group": "Ungrouped variables", "definition": "matrix([b1,b2,b3,b4,b5])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "c1", "A", "li1", "mm", "li2", "li3", "li4", "li5", "bb", "b1", "x0", "b2", "b3", "b4", "b5", "fv", "c11", "bbb"], "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": "

Solve the following continuous optimisation problem using  Computational Packages.

\n

{mm}: $ cx $

\n

Subject to:  $Ax \\le b,$ $~~ 0 \\le x_i \\le 10, ~ for ~ all~ i.$

\n

\n

where

\n

$c$ = $\\var{c11}$

\n

$b$ = $\\var{bbb}$

\n

$A$ = $\\var{A}$

\n

\n

Submitting your results:

\n
    \n
  1. Click on \"End Exam\" and \"Print this results summary\" (your problem will be extracted as a pdf file with all the necessary information/data). Do not worry about the \"Total 0/0 (0%)\" score, this pdf is only for generating a LP problem).
  2. \n
  3. Solve the problem by using any Computational Packages.
  4. \n
  5. Submit the above pdf, your code and your optimal solution (optimal $x$ and objevtive function value $cx$ that is expected to be $\\ge \\var{fv}$) as part of your related OnTrack task. P-{x0[0]}{x0[1]}{x0[2]}{x0[3]}{x0[4]}{x0[5]}
  6. \n
", "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/"}]}