Skip to content

Delete previous MIP starts if they exist #352

@odow

Description

@odow

This line adds a new MIP start

if length(varindices) > 0
ret = CPXaddmipstarts(
model.env,
model.lp,
1,
length(varindices),
Ref{Cint}(0),
varindices,
values,
Ref{Cint}(CPX_MIPSTART_AUTO),
C_NULL,
)

Bit it adds a mip-start, leaving the previous one in-place.

Looks like we need to use
https://www.ibm.com/support/knowledgecenter/SSSA5P_20.1.0/ilog.odms.cplex.help/refcallablelibrary/mipapi/getnummipstarts.html
https://www.ibm.com/support/knowledgecenter/SSSA5P_20.1.0/ilog.odms.cplex.help/refcallablelibrary/mipapi/delmipstarts.html
to delete existing ones.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions