COIN-OR::LEMON - Graph Library

Opened 14 years ago

Last modified 8 years ago

#326 closed enhancement

MipSolver interface fixes and extension — at Initial Version

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

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

  1. There are two incosinstency 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 (0)

Note: See TracTickets for help on using tickets.