The comment on the objective was a general comment, not related to your problems. Also note that you have a strict inequality on T, which isn't supported really, as it doesn't make sense mathematically in practice.
However, the code runs here. Mosek trivially solves the problem, and returns a solution to YALMIP
Hence, does mosek really work on your machine (have you for example tested yalmiptest('mosek'), or solved a trivial problem such as sdpvar x; optimize(x>=0,x,sdpsettings('solver','mosek'))
Problem
Name :
Objective sense : min
Type : LO (linear optimization problem)
Constraints : 1105
Cones : 0
Scalar variables : 553
Matrix variables : 0
Integer variables : 288
Optimizer started.
Mixed integer optimizer started.
Threads used: 2
Presolve started.
Presolve terminated. Time = 0.06
Presolved problem: 553 variables, 528 constraints, 153120 non-zeros
Presolved problem: 288 general integer, 0 binary, 265 continuous
Clique table size: 0
BRANCHES RELAXS ACT_NDS DEPTH BEST_INT_OBJ BEST_RELAX_OBJ REL_GAP(%) TIME
0 1 0 0 NA 0.0000000000e+00 NA 0.2
0 1 0 0 0.0000000000e+00 0.0000000000e+00 0.00e+00 0.2
An optimal solution satisfying the relative gap tolerance of 1.00e-02(%) has been located.
The relative gap is 0.00e+00(%).
An optimal solution satisfying the absolute gap tolerance of 0.00e+00 has been located.
The absolute gap is 0.00e+00.
Objective of best integer solution : 0.000000000000e+00
Best objective bound : 0.000000000000e+00
Construct solution objective : Not employed
Construct solution # roundings : 0
User objective cut value : 0
Number of cuts generated : 0
Number of branches : 0
Number of relaxations solved : 1
Number of interior point iterations: 0
Number of simplex iterations : 0
Time spend presolving the root : 0.06
Time spend in the heuristic : 0.00
Time spend in the sub optimizers : 0.00
Time spend optimizing the root : 0.03
Mixed integer optimizer terminated. Time: 0.20
Optimizer terminated. Time: 0.31
Integer solution solution summary
Problem status : PRIMAL_FEASIBLE
Solution status : INTEGER_OPTIMAL
Primal. obj: 0.0000000000e+00 nrm: 3e-01 Viol. con: 0e+00 var: 0e+00 itg: 0e+00
Optimizer summary
Optimizer - time: 0.31