Printing output values of my decision variables on excelsheet

"Bogers, F.R." <[email protected]>
Newsgroups gmane.comp.gnu.glpk
Message-ID <9BD8131A92E1084D9C517FFAF136C04C780ADDA3@xserver31a.campus.tue.nl>
Hi all,

I am trying to print the output values of my decision variables on the excel sheet. I have downloaded StudioSolver as add in to my excel. After solving the model i would like to only print the positive values of my decision variables in excel.

I have used the following code for my binary decision variable Xijk.

printf("\nx assignment: ");
for {i in B}
{ for {j in V}
{ for {k in K: x[i,j,k]} printf "\nBerth %d Vessel %d order %d.",
     if x[i,j,k] then i,j,k;
}
     }


This works but it only prints the output values on the textbox of StudioSolver. How can i print the output values in my excel spreadsheet?

Thanks in advance!

Greetings,
Frank

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.