Code covered by the BSD License  

Highlights from
Optimization, Nonlinear Control, and Estimation Toolbox

image thumbnail

Optimization, Nonlinear Control, and Estimation Toolbox

by

 

04 Jul 2011 (Updated )

APM MATLAB toolbox for nonlinear control and estimation of DAE models with IPOPT

main.m
addpath('../apm');

% Select server
server = 'http://xps.apmonitor.com';

% Application name
app = 'trial';

% Clear previous application
apm(server,app,'clear all');

% Load model file
apm_load(server,app,'hs71.apm');

% Option to select solver (1=APOPT, 2=BPOPT, 3=IPOPT)
apm_option(server,app,'nlc.solver',3);

% Solve on APM server
apm(server,app,'solve')

% Retrieve results
disp('Results');
results = apm_sol(server,app)
values = cell2mat(results(2:end,:));

% Display Results in Web Viewer 
url = apm_var(server,app);
	

Contact us