made matlab version info a static method
@@ -44,6 +44,13 @@ classdef osqp < handle
% C = CONSTANT(CONSTANT_NAME) return constant called CONSTANT_NAME
out = osqp_mex('constant', 'static', constant_name);
end
+
+ %%
+ function out = version(this)
+ % Return OSQP version
+ out = osqp_mex('version', this.objectHandle);
+ end
+
end
methods
%% Constructor - Create a new solver instance
@@ -58,12 +65,6 @@ classdef osqp < handle
osqp_mex('delete', this.objectHandle);
end
- %%
- function out = version(this)
- % Return OSQP version
- out = osqp_mex('version', this.objectHandle);
- end
-
%%
function out = current_settings(this)
% CURRENT_SETTINGS get the current solver settings structure
