Rank: 479247 based on 0 downloads (last 30 days) and 0 file submitted
photo

Emre Savas

E-mail
Company/University
King's College London

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Emre View all
Updated File Comments Rating
08 Aug 2014 MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB Author: John Hedengren

One last question, Where exactly I should put csv_load() command in minlp.m file that you provide in your submission? I think this is why I can't retrieve the data from csv file.

I am using minlp.m file that you submitted in this page.

Thanks for your help

07 Aug 2014 MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB Author: John Hedengren

I have tried to do it in either way, but I am always getting this error:

Error using urlreadwrite (line 90)
The server did not find a resource to match this request.

Error in urlread (line 36)
[s,status] = urlreadwrite(mfilename,catchErrors,url,varargin{:});

Error in apm_sol (line 7)
response = urlread(url);

Error in minlp (line 160)
sol = apm_sol(server,app); % retrieve solution

what I did was;
1. using csv_load:
I declared "c" as a parameter in .apm file, and typed csv_load(server,app, 'minlp.csv') command in minlp.m file.
OR….
2. Declaring parameters as FV:
I removed c[1], c[2], and c[3] parameters from amp file, and I put:

apm_info (server, app, 'FV', 'c[1]')
apm_meas (server, app, 'c[1]', 130)
apm_info (server, app, 'FV', 'c[2]')
apm_meas (server, app, 'c[2]', 150)
apm_info (server, app, 'FV', 'c[3]')
apm_meas (server, app, 'c[3]', 180)

this code in minlp.m file.. I am getting the same error in either methods.
Thanks for your help!
Emre

06 Aug 2014 MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB Author: John Hedengren

John,

I would like to assign different numbers to each cell of my matrix, which are independent of other variables. i.e:
c[1][1] = 150
c[1][2]= 120
c[1][3] = 180
….
c[1][30]=45
where right hand side is an array of {150, 120, 180,…,45}
Is there an easy way to assign these numbers ?

06 Aug 2014 MINLP: Mixed Integer Nonlinear Programming Mixed Integer Nonlinear Programming Solver with APM MATLAB Author: John Hedengren

Thanks for your submission. It's quite user-friendly toolbox.

I have a question. I need to create a matrix array (i.e f(i,j) where i and j are indices) using the parameters I define in my program. However, I would like to create it in a for loop statement to make it easier. It is quite painful to assign each cell of the array as an equation, if the dimension of indices (i and j) are too large.

Is there any way to do this?

Thanks,
Emre

Contact us