18 #include <ilcplex/cplex.h>
57 int32_t* idx_bound, int32_t num_bound, int32_t* w_zero,
58 int32_t num_zero,
float64_t* vee, int32_t num_dim,
bool use_bias);
123 float64_t* H, int32_t rows, int32_t cols,
int* &qmatbeg,
int* &qmatcnt,
124 int* &qmatind,
double* &qmatval);
128 return CPXsetdblparam (
env, CPX_PARAM_TILIM, seconds) == 0;
132 return CPXwriteprob (
env,
lp, filename, NULL) == 0;
137 #if CPX_VERSION >= 1000 //CPXqpwrite has been deprecated in CPLEX 10
138 return CPXwriteprob (
env,
lp, filename, NULL) == 0;
140 return CPXqpwrite (
env,
lp, filename) == 0;
145 virtual const char*
get_name()
const {
return "Cplex"; }
Class CCplex to encapsulate access to the commercial cplex general purpose optimizer.
bool setup_qp(float64_t *H, int32_t dim)
bool init(E_PROB_TYPE t, int32_t timeout=60)
init cplex with problem type t and retry timeout 60 seconds
bool set_time_limit(float64_t seconds)
bool write_problem(char *filename)
bool optimize(float64_t *sol, float64_t *lambda=NULL)
bool setup_lpboost(float64_t C, int32_t num_cols)
bool dense_to_cplex_sparse(float64_t *H, int32_t rows, int32_t cols, int *&qmatbeg, int *&qmatcnt, int *&qmatind, double *&qmatval)
Class SGObject is the base class of all shogun objects.
bool add_lpboost_constraint(float64_t factor, SGSparseVectorEntry< float64_t > *h, int32_t len, int32_t ulen, CBinaryLabels *label)
bool setup_subgradientlpm_QP(float64_t C, CBinaryLabels *labels, CSparseFeatures< float64_t > *features, int32_t *idx_bound, int32_t num_bound, int32_t *w_zero, int32_t num_zero, float64_t *vee, int32_t num_dim, bool use_bias)
bool setup_lpm(float64_t C, CSparseFeatures< float64_t > *x, CBinaryLabels *y, bool use_bias)
virtual const char * get_name() const
bool write_Q(char *filename)
all of classes and functions are contained in the shogun namespace
bool setup_lp(float64_t *objective, float64_t *constraints_mat, int32_t rows, int32_t cols, float64_t *rhs, float64_t *lb, float64_t *ub)
Binary Labels for binary classification.