I am solving an optimal control problem using the python GEKKO and/or APM Matlab interface(they are the same package for both languages). I can solve my problem successfully, but I cannot figure out how to specify the output location of the solution file.
After loading my files and solving my problem using
% server
s = 'http://byu.apmonitor.com';
% application name
a = 'test';
% load model and data file
apm_load(s,a,'test.apm')
csv_load(s,a,'test.csv')
output = apm(s,a,'solve');
a file called 'solution_test.csv' is created in the directory of the file i just ran. How can i change this output directory?