COIN-OR::LEMON - Graph Library

Changeset 1247:60708e1475ae in lemon-0.x


Ignore:
Timestamp:
03/23/05 12:51:40 (15 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1674
Message:

Completions.

Location:
src/work/athos/lp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/lp_base.cc

    r1246 r1247  
    1 // -*- c++ -*-
     1/* -*- C++ -*-
     2 * src/lemon/maps.h - Part of LEMON, a generic C++ optimization library
     3 *
     4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     5 * (Egervary Combinatorial Optimization Research Group, EGRES).
     6 *
     7 * Permission to use, modify and distribute this software is granted
     8 * provided that this copyright notice appears in all copies. For
     9 * precise terms see the accompanying LICENSE file.
     10 *
     11 * This software is provided "AS IS" with no warranty of any kind,
     12 * express or implied, and with no claim as to its suitability for any
     13 * purpose.
     14 *
     15 */
     16
    217#ifndef LEMON_LP_BASE_CC
    318#define LEMON_LP_BASE_CC
  • src/work/athos/lp/lp_base.h

    r1246 r1247  
    1 // -*- c++ -*-
     1/* -*- C++ -*-
     2 * src/lemon/maps.h - Part of LEMON, a generic C++ optimization library
     3 *
     4 * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     5 * (Egervary Combinatorial Optimization Research Group, EGRES).
     6 *
     7 * Permission to use, modify and distribute this software is granted
     8 * provided that this copyright notice appears in all copies. For
     9 * precise terms see the accompanying LICENSE file.
     10 *
     11 * This software is provided "AS IS" with no warranty of any kind,
     12 * express or implied, and with no claim as to its suitability for any
     13 * purpose.
     14 *
     15 */
     16
    217#ifndef LEMON_LP_BASE_H
    318#define LEMON_LP_BASE_H
     
    722namespace lemon {
    823  class LpSolverBase {
    9   protected:
     24  public:
     25
     26    //UNCATEGORIZED
     27
     28    /// \e
     29    typedef double Value;
     30    /// \e
     31    static const Value INF;
     32   protected:
    1033
    1134    //MATRIX MANIPULATING FUNCTIONS
     
    1841    /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    1942    virtual void _setRowCoeffs(int i,
    20                                int  * &indices,
    21                                double  * &doubles ) = 0;
     43                               int  const * indices,
     44                               Value  const * values ) = 0;
    2245    /// \e
    2346    /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    2447    virtual void _setColCoeffs(int i,
    25                                int  * &indices,
    26                                double  * &doubles ) = 0;
     48                               int  const * indices,
     49                               Value  const * values ) = 0;
    2750   
     51    /// \e
     52    /// The lower bound of a variable (column) have to be given by an
     53    /// extended number of type Value, i.e. a finite number of type
     54    /// Value or -INF.
     55    virtual void _setColLowerBound(int i, Value value) = 0;
     56    /// \e
     57    /// The upper bound of a variable (column) have to be given by an
     58    /// extended number of type Value, i.e. a finite number of type
     59    /// Value or INF.
     60    virtual void _setColUpperBound(int i, Value value) = 0;
     61    /// \e
     62    /// The lower bound of a linear expression (row) have to be given by an
     63    /// extended number of type Value, i.e. a finite number of type
     64    /// Value or -INF.
     65    virtual void _setRowLowerBound(int i, Value value) = 0;
     66    /// \e
     67    /// The upper bound of a linear expression (row) have to be given by an
     68    /// extended number of type Value, i.e. a finite number of type
     69    /// Value or INF.
     70    virtual void _setRowUpperBound(int i, Value value) = 0;
     71
     72    /// \e
     73    virtual void _setObjCoeff(int i, Value obj_coef) = 0;
    2874  } 
    2975
Note: See TracChangeset for help on using the changeset viewer.