Post Reply 
Simplex method in prime how to use the constrains maximise s.t. constraints.
11-03-2023, 03:30 PM (This post was last modified: 11-03-2023 04:41 PM by Albert Chan.)
Post: #14
RE: Simplex method in prime how to use the constrains maximise s.t. constraints.
(11-03-2023 02:55 AM)jte Wrote:  I've also added SIN(1.5(6X+3Y))<0 so that one can get an idea as to how 6X+3Y is behaving.

Typo: C = 6*X+5*Y, 3Y should be 5Y

Assuming 1.5 really meant roughly pi/2, above implied RAD mode.
Since users may have different mode setting, this made SIN not portable.

Instead, we may use portable equivalent: ((6*X+5*Y) MOD 4)>2
Intent is also clearer, square wave with period of 4

(11-03-2023 09:42 AM)Anthony The Koala Wrote:  To jte ... I could not get the optimum solution of X = 2.85714, Y = 5.7143

Your plot is missing the crucial square wave function, described above.
With the parallel ruler, we can locate vertex with min(C)

BTW, we could get min(C) without getting vertex (X,Y)
Follow the ruler, interpolate for Y intercept, then multiply by 5

C = 6x + 5y = 6*0 + 5*(y intercept) ≈ 5*9.1 = 45.5
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Simplex method in prime how to use the constrains maximise s.t. constraints. - Albert Chan - 11-03-2023 03:30 PM



User(s) browsing this thread: 9 Guest(s)