Function highs_sys::Highs_clearModel
source · [−]Expand description
Remove all variables and constraints from the model highs, but do not
invalidate the pointer highs. Future calls (for example, adding new
variables and constraints) are allowed.
See Highs_destroy to clear the model and free all associated memory.
@param highs a pointer to the Highs instance
@returns a kHighsStatus constant indicating whether the call succeeded