[英]CPLEX with MATLAB using cplexmiqp
Hello my matlab code calls a cplexmiqp function to optimize a performance index.你好,我的 matlab 代码调用 cplexmiqp function 来优化性能指标。
The MATLAB code I am using calls a miqp function as from cplex [v, fval, exitflag, output] = cplexmiqp(H, f, G, h, [], [], [], [], [], [], [], ctype );我正在使用的 MATLAB 代码从 cplex [v, fval, exitflag, output] = cplexmiqp(H, f, G, h, [], [], [], [], [], [] 调用 miqp function , [], ctype );
I would be using the function "MIQPS_MATPOWER Mixed Integer Quadratic Program Solver for MATPOWER" from https://matpower.org/docs/ref/matpower6.0/miqps_cplex.html我将使用来自https://matpower.org/docs/ref/matpower6.0/miqps_cplex.html的 function“MIQPS_MATPOWER Mixed Integer MATPOWER 二次规划求解器”
I already have cplex optimization studio, but my question is where do I enter the inputs on the function?我已经有复杂的优化工作室,但我的问题是我在哪里输入 function 上的输入?
For example using this inputs on the function:例如,在 function 上使用此输入:
H = [ 1003.1 4.3 6.3 5.9;
4.3 2.2 2.1 3.9;
6.3 2.1 3.5 4.8;
5.9 3.9 4.8 10 ];
c = zeros(4,1);
A = [ 1 1 1 1
0.17 0.11 0.10 0.18 ];
l = [1; 0.10];
u = [1; Inf]; xmin = zeros(4,1);
x0 = [1; 0; 0; 1];
opt = struct('verbose', 2);
[x, f, s, out, lambda] = miqps_cplex(H, c, A, l, u, xmin, [], x0, %%vtype, opt);
same question at同样的问题在
https://www.mathworks.com/matlabcentral/answers/1725610-using-cplex-with-matlab-newest-version/?s_tid=ans_lp_feed_leaf https://www.mathworks.com/matlabcentral/answers/1725610-using-cplex-with-matlab-newest-version/?s_tid=ans_lp_feed_leaf
The Matlab direct API in CPLEX was removed a few versions ago. CPLEX 中的 Matlab 直接 API 几个版本前就去掉了。 And you can see more details in detailed requirements for cplex您可以在cplex 的详细要求中看到更多详细信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.