help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Write Solution Variable to a Google Table


From: Meketon, Marc
Subject: Re: [Help-glpk] Write Solution Variable to a Google Table
Date: Sun, 1 Jun 2014 10:30:45 -0500

Could you use the “printf” statement to write a JSON text file that could be imported into the web page?

 

solve;

 

param filename symbolic := "d:\temp\file.txt";

printf "{FinInvAff:{\n" > filename;

for { fmdl in fmatdloc,t in tim }

{

  printf "  fmdl:%s, t:%d, value:%f\n", fmdl, t, FinInvAff[fmdl, t] >> filename;

}

printf "}}\n" >> filename;

 

From: help-glpk-bounces+address@hidden [mailto:help-glpk-bounces+address@hidden On Behalf Of Eric Moore
Sent: Saturday, May 31, 2014 2:08 PM
To: GLPK help
Subject: [Help-glpk] Write Solution Variable to a Google Table

 

Does anyone have an example they could share on how to use the data drivers to write solution variables to a web page table? I've got a simple model solving in a webpage. The output is written to a textarea. I had a previous version of an end to end supply chain model that would write the solution variables to MySQL tables. I just can seem to find an example to help me figure out how to write a table of solution variables to a table that listed on a webpage. I am certain there is a simple way to use the JSON driver to write the variables to a Google table. Just can seem to get myself started. Any example that any way can share would be a huge help. Sorry for naive question. Just trying to get this thing started.

 

The link below is what I have build. It is very simple. The input tables don't link to GLPK yet. That is another step that I need to complete. For now I'm just trying to figure out how to write the solution to a Google table that I would add to the bottom of the webpage.

 

 

Thanks,

Eric

 



This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]