CMosek added variable bounds

Hey @iglesias I made changes in Mosek.cpp for adding bounds on variables. Unfortunately, I have to touch many files to make the arguments consistent. Could you review the little patch for me? 

I am not sure we want to add unit-test for Mosek related class. But I am pretty sure these changes make sense. I have tested them on my own computer. BTW, I think @Jiaolong will test this part of code in his GraphCut inference thoroughly. 
Yeah, it's not easy to set lb and ub eternally, since currently no models
used lb and ub, and the only way is calling init_primal_obj(). We could
consider to have functions get_lb/set_lb and get_ub/set_lb, but I don't
think these functions will wildly used.


On Sun, Jul 6, 2014 at 11:29 PM, Fernando Iglesias <notifications@github.com
> wrote:

> In tests/unit/structure/PrimalMosekSOSVM_unittest.cc:
>
> > +		dPsi.zero();
> > +		result->psi_pred_sparse.add_to_dense(1.0, dPsi.vector, dPsi.vlen);
> > +		result->psi_truth_sparse.add_to_dense(-1.0, dPsi.vector, dPsi.vlen);
> > +	}
> > +	else
> > +	{
> > +		SG_SPRINT("Should have either of psi_computed or psi_computed_sparse"
> > +				"to be set true\n");
> > +	}
> > +
> > +	return ( mosek->add_constraint_sosvm(dPsi, con_idx, train_idx,
> > +			model->get_num_aux(), -result->delta) == MSK_RES_OK );
> > +}
> > +
> > +SGVector<float64_t> dummy_mosek_sosvm(CFactorGraphModel* model,
> > +		SGVector<float64_t> lb, SGVector<float64_t> ub)
>
> Is this pretty much the same code as
> CPrimalMosekSOSVM::train_machine(CFeatures*)?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/shogun-toolbox/shogun/pull/2372/files#r14582694>.
>



-- 
/**
* ============HuShell============
*/