math - How to solve this linear equation? I have the OpenSolver logic, but can't transpose it in code (Javascript) -


i have linear equation problem:

objective: maximize r17  variables: - floats: q7, q8, q9, q10, q11, q12, q13, q14, q15, q16, q17 - floats: r7, r8, r9, r10, r11, r12, r13, r14, r16, r16, r17  relations: - q7 +q8 +q9 +q10 + q11 + q12 + q13 + q14 + q15 + q16 = q17 - r7 +r8 +r9 +r10 + r11 + r12 + r13 + r14 + r15 + r16 = r17 - r7 = q7 / 0.50 - r8 = q8 / 0.75 - r9 = q9 / 0.88 - r10 = q10 / 1.00 - r11 = q11 / 1.13 - r12 = q12 / 1.18 - r13 = q13 / 1.76 - r14 = q14 / 2.11 - r15 = q15 / 2.33 - r16 = q16 / 2.50  constraints: - 1000 <= q7 <= 17500 - 2000 <= q8 <= 6300 - 5000 <= q9 <= 19292 - 1200 <= q10 <= 29820 - 100 <= q11 <=2887.50 - 700 <= q12 <= 20825 - 300 <= q13 <= 9481.50 - 150 <= q14 <= 5764.50, - 1200 <= q15 <= 48594, - 300 <= q16 <= 12600  - 60500 <= q17 <= 60500 

i have placed constraints in excel using opensolver, need automate this. i've been looking here, played little bit glpk, couldn't find proper way plug in requirements demo.

furthermore, i've taken @ jslpsolver , opened issue there. i'm not sure yet if support linear equation or not.

i need in javascript or ios. have idea?

ps: here link opensolver excel file.

fortunately, managed sort out myself. there undocumented things regarding jslpsolver parsing capabilities of lpsolve, in end cool.

take here if wish read answer. hope helps anyone.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -