Adding current version of JEInterface (Matlab Interface) to resource folder

This commit is contained in:
Marcel Kronfeld
2008-02-26 18:03:55 +00:00
parent 4ecb9e9841
commit 41cd0a8cb8
12 changed files with 193 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
function v = getResult(int)
% Returns the optimization solution if the run has been finished, or an
% intermediate solution if the run has not finished yet or an empty array
% if there is no intermediate solution yet.
if (isFinished(int))
v = int.result;
else
v = int.mp.getIntermediateResult();
end