Formulate this as a linear programming problem

  • Thread starter chwala
  • Start date
5 replies · 3K views · last reply
chwala
Gold Member
Messages
2,854
Reaction score
436
Homework Statement
See attached: this decision maths text book I realized has a number of wrong notations and solutions in various topics:critical path etc

Just counter check the phrase "twice as many pockets as desktop"

Is that correct? Is it not firstly, ##2y=x##
Relevant Equations
Decision maths
See attached ...
 
Attachments
  • Textbook page showing a worked linear programming example: a summary table of diary types, minimum orders and costs, then the objective c = 6x + 3y with constraints x ≥ 200, y ≥ 80, 2x ≤ y, x + y ≥ 400, plus a summary box.
    20250609_105535.webp
    41.6 KB · Views: 54
I believe ##x## is used for desktop diaries and ##y## is used for pocket diaries.

They key word is “at least”

“They will need at least twice as many pocket diaries as desktop diaries”……translation: “the number of pocket diaries must be greater than or equal to 2 times the number of desktop diaries”

So

##y \geq 2x##
 
And this one, sorry, am using phone to type...
Number 2,
For kruskal algorithm, CE shouldn't be connected as it forms a cycle, correct? ...or a cycle refers to connected vertices? am I missing something. See my sketch...
 
Attachments
  • Weighted network graph of eight schools A to H with edge weights in km, including edges such as A-B 13, B-C 16, C-D 22, D-E 22, E-F 18, F-G 19 and G-H 23.
    20250609_145707.webp
    35.4 KB · Views: 85
  • Hand-drawn network graph with vertices A to H and weighted edges: AB 12, AC 14, AD 15, AE 21, HE 21, GE 18, FE 18, CE 17; labels 15 and 17 also appear near edges.
    20250609_145719.webp
    18.1 KB · Views: 55
  • Handwritten notes on lined paper showing Kruskal's algorithm on a weighted graph with vertices A to E, edge weights listed, and a hand-drawn minimum spanning tree with a second sketch of vertices A to G.
    20250609_150814.webp
    31.6 KB · Views: 61
Last edited:
chwala said:
Just counter check the phrase "twice as many pockets as desktop"

Is that correct? Is it not firstly, ##2y=x##
The phrase “there is twice as many ## y ## as ## x ##” means ## y=2x ##.
 
chwala said:
...or a cycle refers to connected vertices?
Yes, it does.

The edge CE is included into the minimum spanning tree too.
 
Gavran said:
Yes, it does.

The edge CE is included into the minimum spanning tree too.
I thought CE shouldn't be connected as shown on text, as that does not conform to the kruskal algorithm. I stand to be corrected.

Just seen that intersection can occur as long as the vertices are not connected to form loop, in that case the textbook is correct. Cheers man.
 
Last edited: