17 using namespace shogun;
24 glp_term_out(GLP_OFF);
43 " MKLMulticlassGLPK MKLMulticlassGLPK::operator=(...): must "
44 "not be called, glpk structure is currently not copyable");
51 " MKLMulticlassGLPK::MKLMulticlassGLPK(MKLMulticlassGLPK & gl):"
52 " must not be called, glpk structure is currently not copyable");
62 SG_ERROR(
"void glpkwrapper::setup(const int32_tnumkernels): input "
83 glp_set_col_bnds((glp_prob*)
linearproblem,offset+i,GLP_DB,0.0,1.0);
90 int32_t*betainds(NULL);
106 glp_set_mat_row((glp_prob*)
linearproblem,1,numkernels, betainds,betacoeffs);
107 glp_set_row_bnds((glp_prob*)
linearproblem,1,GLP_FX,1.0,1.0);
116 "glpk.h from GNU glpk not included at compile time necessary "
125 #if defined(USE_GLPK)
128 ASSERT (sumofpositivealphas>=0);
132 int32_t curconstraint=glp_get_num_rows((glp_prob*)
linearproblem);
134 int32_t *betainds(NULL);
151 betacoeffs[2+i]=0.5*normw2[i];
153 glp_set_mat_row((glp_prob*)
linearproblem,curconstraint,1+numkernels, betainds,
155 glp_set_row_bnds((glp_prob*)
linearproblem,curconstraint,GLP_LO,sumofpositivealphas,
156 sumofpositivealphas);
166 "glpk.h from GNU glpk not included at compile time necessary "
173 #if defined(USE_GLPK)
181 weights2[i]=glp_get_col_prim((glp_prob*)
linearproblem, i+2);
182 weights2[i]= ::std::max(0.0, ::std::min(1.0,weights2[i]));
194 SG_ERROR(
"void glpkwrapper::computeweights(std::vector<float64_t> & "
195 "weights2): sum of weights nonpositive %f\n",sum);
198 "glpk.h from GNU glpk not included at compile time necessary "