[Fwd: Using the summation operator with GLPK.]
Andrew Makhorin <[email protected]> Tue, 01 Nov 2022 13:03:55 +0300
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <[email protected]> |
--=-Pe2FjWQqxnN3nOXVyFdY Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit -------- Forwarded Message -------- Date: Mon, 31 Oct 2022 20:46:36 +0000Subject: Using the summation operator with GLPK.To: [email protected] <[email protected]>From: philliprusso <[email protected]>So from reading the documentation I guess that GLPK can read a file in and that there are a number of formats to be using. So I would like to start using GLPK in the C++ language for Ubuntu 18.0.45 LTS that I am using for the windows subsystem for linux and visual studio code. The problem I am trying to solve is using the summation operator. In latex format it goes like this: (For a point list P(x,y)_{n} \sum {k=0}^{n} \alpha_{k}*x^{i}*y^{j} The summation with the value k and permuting n times over the formula alpha of k multiplied by x to the i power multiplied by y to the j power. This is the formula for a 2D problem for a finite element analysis coming from the book Analysis of Structures and Material Behaviors for Kindle. The number of terms is said to formulate to (n+1)(n+2)/2. Does GLPK handle the summation operator somehow. Can I see some example of how to implement such a problem with a GLPK file format (any format that works is great) and or how to calculate this thing. The trouble I have is that with the inclusion of i and j with the summation operator I couldn't find a calculator available on the internet that can handle such a thing and also so far I have been unable to get help from anyone that knows how to. Thank You! Any type of help would be greatly appreciated. Sent with Proton Mail secure email. --=-Pe2FjWQqxnN3nOXVyFdY Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html><head></head><body><div>-------- Forwarded Message --------</div><div= ><br></div><div><b>Date</b>: Mon, 31 Oct 2022 20:46:36 +0000</div><div><b>S= ubject</b>: Using the summation operator with GLPK.</div><div><b>To</b>: he= [email protected] <<a href=3D"mailto:%[email protected]%22%20%3chelp-glp= [email protected]%3e">[email protected]</a>></div><div><b>From</b>: philliprusso= <<a href=3D"mailto:philliprusso%20%[email protected]%3e">phillip= [email protected]</a>></div><!-- text/html --><div style=3D"font-family: A= rial; font-size: 14px;">So from reading the documentation I guess that GLPK= can read a file in and that there are a number of formats to be using. So = I would like to start using GLPK in the C++ language for Ubuntu 18.0.45 LTS= that I am using for the windows subsystem for linux and visual studio code= .</div><div style=3D"font-family: Arial; font-size: 14px;"><br></div><div s= tyle=3D"font-family: Arial; font-size: 14px;">The problem I am trying to so= lve is using the summation operator. In latex format it goes like this:</di= v><div style=3D"font-family: Arial; font-size: 14px;"><br></div><div style= =3D"font-family: Arial; font-size: 14px;">(For a point list P(x,y)_{n}</div= ><div style=3D"font-family: Arial; font-size: 14px;"><br></div><div style= =3D"font-family: Arial; font-size: 14px;">\sum <i>{k=3D0}^{n} \alpha</i>_{k= }*x^{i}*y^{j}</div><div style=3D"font-family: Arial; font-size: 14px;"><br>= </div><div style=3D"font-family: Arial; font-size: 14px;">The summation wit= h the value k and permuting n times over the formula alpha of k multiplied = by x to the i power multiplied by y to the j power.</div><div style=3D"font= -family: Arial; font-size: 14px;"><br></div><div style=3D"font-family: Aria= l; font-size: 14px;">This is the formula for a 2D problem for a finite elem= ent analysis coming from the book Analysis of Structures and Material Behav= iors for Kindle. The number of terms is said to formulate to (n+1)(n+2)/2.<= /div><div style=3D"font-family: Arial; font-size: 14px;"><br></div><div sty= le=3D"font-family: Arial; font-size: 14px;">Does GLPK handle the summation = operator somehow. Can I see some example of how to implement such a problem= with a GLPK file format (any format that works is great) and or how to cal= culate this thing. The trouble I have is that with the inclusion of i and j= with the summation operator I couldn't find a calculator available on the = internet that can handle such a thing and also so far I have been unable to= get help from anyone that knows how to. Thank You! Any type of help would = be greatly appreciated.</div><div style=3D"font-family: Arial; font-size: 1= 4px;"><br></div> <div class=3D"protonmail_signature_block" style=3D"font-family: Arial; font= -size: 14px;"> <div class=3D"protonmail_signature_block-user protonmail_signature_bloc= k-empty"> =20 </div> =20 <div class=3D"protonmail_signature_block-proton"> Sent with <a target=3D"_blank" href=3D"https://proton.me/" rel=3D"n= oopener noreferrer">Proton Mail</a> secure email. </div> </div> </body></html> --=-Pe2FjWQqxnN3nOXVyFdY--