Getting a TXT formated solution back from Trucking example using Python API

Hi,

I am having problems getting a TXT formated solution back from from the Python API. Could you let me know how this is done?

Getting a JSON solution back is no problem, but the following does not render a TXT solution as I otherwise would have expected. The code below does leave a TXT solution available on DropSolve, but it is not being downloaded via the Python API.

with open(“models/truck.mod”, “rb”) as modFile:
resp = client.execute(input=[{“name”:”truck.mod”,
“file”:modFile},
“models/truck.dat”],
output=”results.txt”,
log=”solver.log”,
gzip=True,
waittime=300,
delete_on_completion=False,
parameters={‘oaas.resultsFormat’ : ‘TEXT’})

@DanielJunglas

Kind regards

Bo

Related:

Leave a Reply