set_add_rowmodeSpecifies which add routine performs best. add_column, add_columnex, str_add_column or add_constraint, add_constraintex, str_add_constraint unsigned char set_add_rowmode(lprec *lp, unsigned char turnon); Return Value set_add_rowmode return TRUE if changed from mode and FALSE if this mode was already set. 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 turnon TRUE or FALSE. If FALSE, then add_column, add_columnex, str_add_column performs best. If TRUE, then add_constraint, add_constraintex, str_add_constraint performs best. Remarks Default, this is FALSE, meaning that add_column, add_columnex,
str_add_column performs best. If the model is build via
add_constraint, add_constraintex, str_add_constraint calls, then these routines will be much faster
if this routine is called with turnon set on TRUE. This is also called row entry mode.
The speed improvement is spectacular,
especially for bigger models, so it is advisable to call this routine to set the mode.
Normally a model is build either column by column or row by row. Example
See Also make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, is_add_rowmode, set_obj_fn, set_obj_fnex, str_set_obj_fn, set_obj, add_column, add_columnex, str_add_column, add_constraint, add_constraintex, str_add_constraint |