COIN-OR::LEMON - Graph Library

Opened 10 years ago

Last modified 3 years ago

#326 closed enhancement

MipSolver interface fixes and extension — at Version 1

Reported by: Peter Kovacs Owned by: Balazs Dezso
Priority: critical Milestone: LEMON 1.4 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description (last modified by Peter Kovacs)

In MipSolver there are type(), sol() and solValue() functions to obtain the (primal) solution.

  1. There are two inconsistent names here:
    • solValue() should be renamed to sol() (as on overloaded version) as primalValue() was renamed to primal() in LpSolver.
    • ColTypes should be renamed to ColType, since we do not use plural in similar names.
  1. Apart form that, I suggest an extension. Let's introduce primalType() and primal() as an alias for the above functions. Adding these variants, one can change to using a Mip solver instead of an Lp solver without rewriting the code (if only primal queries were used).
  1. Maybe type(), sol() could also be added to LpSolver as an alias for the primal queries.

Change History (1)

comment:1 Changed 10 years ago by Peter Kovacs

Description: modified (diff)
Note: See TracTickets for help on using tickets.