How to get a TXT solution back through the Python API?

From the documentation I have understood that the following should work, but it does not give me any output file:

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’})

This does produce an TXT output which I can “manually” download from dropSolve, but the solution file is not being retrieved through the API.

What have I done wrong here?

Kind regards

Bo

Related:

Leave a Reply