gurobi error 10003 on debian
AnsweredHi. When I run my code on my debian machine I get the following error:
Error using gurobi
Gurobi error 10003: Mixing different types of licence parameters is not allowed
Error in callgurobi (line 20)
result = gurobi(model,model.params);Error in solvesdp (line 368)
eval(['output = ' solver.call '(interfacedata);']);Error in optimize (line 31)
[varargout{1:nargout}] = solvesdp(varargin{:});
The code runs alright on a windows machine. here's the code:
load('./Test data/ink_names.mat');% Load the transmittance libraryload('./Test data/transmitance_completelibrary.mat');n = 44; % number of all inkso = 8; %number of active inksm = n-o; %number of deactive inks
% Load the coreset test datacoresettrans = struct2cell(load('./Test data/coresettrans_cat'));coresettrans = coresettrans{1};
coreset_absorbtance=trans2absorbtance(coresettrans); % Convert the coreset transmittances to absorbanceabsorbtance_completelibrary=trans2absorbtance(transmitance_completelibrary); % Convert the coreset transmittances to absorbance
size_of_test=size(coreset_absorbtance,1);
w = sdpvar(size_of_test,n); % Initialize the continues variables of thicknesses.x = binvar(1,n); % Initialize the binary variable of selection.Z = sdpvar(size(coreset_absorbtance',1),size(coreset_absorbtance',2));
constraints = [ 0 <= w <= 4*(repmat(x,[size_of_test 1])),... % Equation (7g)sum(x) <= o ,... % Equation (7e)Z >= (absorbtance_completelibrary'*w'-coreset_absorbtance'), ... % Equation (7b)Z >= -(absorbtance_completelibrary'*w'-coreset_absorbtance'), ... % Equation (7c)];objective = sum(sum(Z)); % Equation (7a)options = sdpsettings;options.solver = 'gurobi'options.debug = 'on'options.gurobi.IntFeasTol = 1e-9;options.gurobi.Threads = 8;sol = optimize(constraints,objective,options);
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
This seems to be an issue caused by using the wrong license.
0 -
I am working with yalmip and the Same problem happened to me. In your /path/to/YALMIP/extras/sdpsettings.m (lines 816-842 in latest YALMIP version).
Please comment out lines:gurobi.WorkerPassword = '';
gurobi.WorkerPool = '';
gurobi.CloudAccessID = '';
gurobi.CloudHost = '';
gurobi.CloudSecretKey = '';
gurobi.CloudPool = '';
gurobi.ComputeServer = '';
gurobi.ServerPassword = '';
gurobi.ServerTimeout = 60;
gurobi.CSPriority = 0;
gurobi.CSQueueTimeout = -1;
gurobi.CSRouter = '';
gurobi.CSGroup = '';
gurobi.CSTLSInsecure = 0;
gurobi.CSIdleTimeout = -1;
gurobi.JobID = '';
gurobi.CSAPIAccessID = '';
gurobi.CSAPISecret = '';
gurobi.CSAppName = '';
gurobi.CSAuthToken = '';
gurobi.CSBatchMode = 0;
gurobi.CSClientLog = 0;
gurobi.CSManager = '';
% gurobi.UserName = '';
gurobi.ServerPassword = '';
gurobi.TokenServer = '';0 -
This issue has been already fixed in YALMIP. See commit Comment out problematic options · yalmip/YALMIP@222b4ce (github.com)
Cheers,
Matthias0
Post is closed for comments.
Comments
4 comments