Re: Printing output values of my decision variables on excelsheet
"Heinrich Schuchardt" <[email protected]>
| Newsgroups | gmane.comp.gnu.glpk |
|---|---|
| Message-ID | <trinity-8d59d43b-f741-4d69-9e02-ff7f6dc87ca4-1492523185007@msvc-mesg-gmx018> |
See example in
https://solverstudio.org/languages/gmpl /
Regards
Heinrich
Am 18.04.17, 15:24, "Bogers, F.R." <f.r.bogers @student.tue.nl> schrieb:
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
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk