set_varweightsSet the weights on variables. int set_varweights(lprec *lp, REAL *weights); Return Value set_varweights 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, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS weights The weights array. Remarks The set_varweights 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 1-based. So variable 1 is at index 1, variable 2 at
index 2. Index 0 is not used. The array must contain get_Ncolumns
elements. Example
See Also make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, get_varpriority, set_var_branch, get_var_branch, set_floor_first, get_floor_first |