| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| LPModelIndexMapping |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Created on 09.03.2008 | |
| 3 | * | |
| 4 | */ | |
| 5 | package net.sourceforge.combean.interfaces.mathprog.lp.model; | |
| 6 | ||
| 7 | /** | |
| 8 | * A mapping of a pair (local index, vector label) -> global index | |
| 9 | * within an LP. | |
| 10 | * | |
| 11 | * @author schickin | |
| 12 | * | |
| 13 | */ | |
| 14 | public interface LPModelIndexMapping { | |
| 15 | ||
| 16 | /** | |
| 17 | * Mapping function. | |
| 18 | * | |
| 19 | * @param origIdx local index | |
| 20 | * @param label vector label | |
| 21 | * @return mapped global index | |
| 22 | */ | |
| 23 | public int mapIndex(int origIdx, LPVectorLabel label); | |
| 24 | ||
| 25 | } |