Adding current version of JEInterface (Matlab Interface) to resource folder
This commit is contained in:
10
resources/MatlabInterface/@JEInterface/getResult.m
Normal file
10
resources/MatlabInterface/@JEInterface/getResult.m
Normal 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
|
Reference in New Issue
Block a user