set_var_weightsSet the weights on variables. unsigned char set_var_weights(lprec *lp, REAL *weights); Return Value set_var_weights returns TRUE (1) if the operation was successful. A return value of FALSE (0) indicates an error. Parameters lp Pointer to previously created lp model. See return value of make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI weights The weights array. Remarks The set_var_weights sets a weight factor on each variable. This is only
used for the integer variables in the branch-and-bound algorithm. Array members
are unique, real-valued numbers indicating the "weight" of the variable at the
given index. The array is 0-based. So variable 1 is at index 0, variable 2 at
index 1. The array must contain get_Ncolumns
elements. Example
See Also make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, get_var_priority, set_var_branch, get_var_branch, set_bb_floorfirst, get_bb_floorfirst |