lemon/glpk.cc
changeset 543 e7eb04ece02c
parent 530 fc6c7aab4b8d
child 557 7ab97e2a0c33
equal deleted inserted replaced
5:a153ee7f4087 6:66c7f843b7e1
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2008
     5  * Copyright (C) 2003-2009
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
   529   GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper;
   529   GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper;
   530 
   530 
   531   // GlpkLp members
   531   // GlpkLp members
   532 
   532 
   533   GlpkLp::GlpkLp()
   533   GlpkLp::GlpkLp()
   534     : LpBase(), GlpkBase(), LpSolver() {
   534     : LpBase(), LpSolver(), GlpkBase() {
   535     messageLevel(MESSAGE_NO_OUTPUT);
   535     messageLevel(MESSAGE_NO_OUTPUT);
   536   }
   536   }
   537 
   537 
   538   GlpkLp::GlpkLp(const GlpkLp& other)
   538   GlpkLp::GlpkLp(const GlpkLp& other)
   539     : LpBase(other), GlpkBase(other), LpSolver(other) {
   539     : LpBase(other), LpSolver(other), GlpkBase(other) {
   540     messageLevel(MESSAGE_NO_OUTPUT);
   540     messageLevel(MESSAGE_NO_OUTPUT);
   541   }
   541   }
   542 
   542 
   543   GlpkLp* GlpkLp::newSolver() const { return new GlpkLp; }
   543   GlpkLp* GlpkLp::newSolver() const { return new GlpkLp; }
   544   GlpkLp* GlpkLp::cloneSolver() const { return new GlpkLp(*this); }
   544   GlpkLp* GlpkLp::cloneSolver() const { return new GlpkLp(*this); }
   828   }
   828   }
   829 
   829 
   830   // GlpkMip members
   830   // GlpkMip members
   831 
   831 
   832   GlpkMip::GlpkMip()
   832   GlpkMip::GlpkMip()
   833     : LpBase(), GlpkBase(), MipSolver() {
   833     : LpBase(), MipSolver(), GlpkBase() {
   834     messageLevel(MESSAGE_NO_OUTPUT);
   834     messageLevel(MESSAGE_NO_OUTPUT);
   835   }
   835   }
   836 
   836 
   837   GlpkMip::GlpkMip(const GlpkMip& other)
   837   GlpkMip::GlpkMip(const GlpkMip& other)
   838     : LpBase(), GlpkBase(other), MipSolver() {
   838     : LpBase(), MipSolver(), GlpkBase(other) {
   839     messageLevel(MESSAGE_NO_OUTPUT);
   839     messageLevel(MESSAGE_NO_OUTPUT);
   840   }
   840   }
   841 
   841 
   842   void GlpkMip::_setColType(int i, GlpkMip::ColTypes col_type) {
   842   void GlpkMip::_setColType(int i, GlpkMip::ColTypes col_type) {
   843     switch (col_type) {
   843     switch (col_type) {