Matlab Warning: Solver not applicable (mosek)
36 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matlab + yalmip toolbox, when calling cplex or mosek to solve the optimization problem, the result is always wrong: Warning: Solver not applicable (mosek), Warning: Solver not applicable (cplex), I think my software is installed correctly, Now I have several reasons for doubt:
1. Too many constraints, the scale of problem solving is too large
2. The software version does not match?(matlab2014b+mosek 8.0.0.60/cplex 12.6.3)
3. There are some mistakes in the code or there is no feasible solution (I think it is unlikely)
Please help me see what to do,thank you !
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281803/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/281804/image.png)
Code for solving part:
ops=sdpsettings
ops = sdpsettings('verbose',2,'solver','mosek','fmincon.MaxFunEvals',30000);
sol =solvesdp(Constraint,f,ops,'full');
if sol.problem== 0
value(f)
else
disp('求解过程中出错');
operation result:
ops =
solver: ''
verbose: 1
debug: 0
usex0: 0
warning: 1
cachesolvers: 0
showprogress: 0
saveduals: 1
removeequalities: 0
savesolveroutput: 0
savesolverinput: 0
saveyalmipmodel: 0
convertconvexquad: 1
assertgpnonnegativity: 1
thisisnotagp: 0
radius: Inf
relax: 0
dualize: 0
savedebug: 0
expand: 1
allowmilp: 1
allownonconvex: 1
shift: 0
dimacs: 0
beeponproblem: [-5 -4 -3 -2 -1]
bisection: [1x1 struct]
bilevel: [1x1 struct]
bmibnb: [1x1 struct]
bnb: [1x1 struct]
cutsdp: [1x1 struct]
kkt: [1x1 struct]
moment: [1x1 struct]
mp: [1x1 struct]
mpcvx: [1x1 struct]
plot: [1x1 struct]
robust: [1x1 struct]
sos: [1x1 struct]
refiner: [1x1 struct]
baron: []
bintprog: [1x1 struct]
bonmin: []
cdcs: [1x1 struct]
cdd: [1x1 struct]
cbc: [1x1 struct]
clp: [1x1 struct]
cplex: [1x1 struct]
csdp: [1x1 struct]
dsdp: [1x1 struct]
ecos: []
filtersd: [1x1 struct]
fmincon: [1x1 struct]
fminsearch: [1x1 struct]
frlib: [1x1 struct]
glpk: [1x1 struct]
gurobi: [1x1 struct]
ipopt: [1x1 struct]
intlinprog: [1x1 optim.options.Intlinprog]
knitro: [1x1 struct]
linprog: [1x1 struct]
lmilab: [1x1 struct]
lmirank: [1x1 struct]
logdetppa: [1x1 struct]
lpsolve: [1x1 struct]
lsqnonneg: [1x1 struct]
lsqlin: [1x1 struct]
kypd: [1x1 struct]
nag: [1x1 struct]
mosek: [1x1 struct]
nomad: []
ooqp: []
penbmi: [1x1 struct]
penlab: []
pensdp: [1x1 struct]
pop: [1x1 struct]
qpoases: []
osqp: []
qsopt: [1x1 struct]
quadprog: [1x1 struct]
quadprogbb: [1x1 struct]
scip: []
scs: [1x1 struct]
sdpa: [1x1 struct]
sdplr: [1x1 struct]
sdpt3: [1x1 struct]
sdpnal: [1x1 struct]
sedumi: [1x1 struct]
sparsepop: [1x1 struct]
sparsecolo: [1x1 struct]
vsdp: [1x1 struct]
xpress: []
Warning: Solver not applicable (mosek)
求解过程中出错
>>
1 Kommentar
gao hailong
am 3 Nov. 2020
I got the same problem and don't know how to solve it.
Do you get the solution now? If yes, thank you for your answer.
Antworten (2)
Muhammad Yasir
am 11 Jan. 2023
Enable debgug messages and look for numerical problems that your code seem to subjected have.
Sometime numerical problem may be a potential cause of this issue ...
0 Kommentare
Siehe auch
Kategorien
Mehr zu Linear Least Squares finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!