Scippy

SoPlex

Sequential object-oriented simPlex

soplexmain.cpp File Reference

Command line interface of SoPlex LP solver. More...

#include <assert.h>
#include <math.h>
#include <string.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include "soplex.h"
#include "soplex/validation.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 runs SoPlexBase command line More...
 
static void printUsage (const char *const argv[], int idx)
 
static void freeStrings (char *&s1, char *&s2, char *&s3, char *&s4, char *&s5)
 
template<class R >
static void checkSolutionReal (SoPlexBase< R > &soplex)
 performs external feasibility check with real type More...
 
template<class R >
static void checkSolutionRational (SoPlexBase< R > &soplex)
 performs external feasibility check with rational type More...
 
template<class R >
void checkSolution (SoPlexBase< R > &soplex)
 performs external feasibility check according to check mode More...
 
template<class R >
static void writePrimalSolution (SoPlexBase< R > &soplex, const char *filename, NameSet &colnames, NameSet &rownames, bool real=true, bool rational=false, bool append=false)
 
template<class R >
static void writeDualSolution (SoPlexBase< R > &soplex, const char *filename, NameSet &colnames, NameSet &rownames, bool real=true, bool rational=false, bool append=false)
 
template<class R >
static void printPrimalSolution (SoPlexBase< R > &soplex, NameSet &colnames, NameSet &rownames, bool real=true, bool rational=false)
 
template<class R >
static void printDualSolution (SoPlexBase< R > &soplex, NameSet &colnames, NameSet &rownames, bool real=true, bool rational=false)
 
template<class R >
int runSoPlex (int argc, char *argv[])
 

Detailed Description

Command line interface of SoPlex LP solver.

Definition in file soplexmain.cpp.

Function Documentation

◆ checkSolution()

void checkSolution ( SoPlexBase< R > &  soplex)

performs external feasibility check according to check mode

Definition at line 261 of file soplexmain.cpp.

References checkSolutionRational(), checkSolutionReal(), and SPX_MSG_INFO1.

◆ checkSolutionRational()

static void checkSolutionRational ( SoPlexBase< R > &  soplex)
static

performs external feasibility check with rational type

Todo:
implement external check; currently we use the internal methods for convenience

Definition at line 204 of file soplexmain.cpp.

References SPX_MSG_INFO1.

Referenced by checkSolution().

◆ checkSolutionReal()

static void checkSolutionReal ( SoPlexBase< R > &  soplex)
static

performs external feasibility check with real type

Todo:
implement external check; currently we use the internal methods for convenience

Definition at line 147 of file soplexmain.cpp.

References SPX_MSG_INFO1.

Referenced by checkSolution().

◆ freeStrings()

static void freeStrings ( char *&  s1,
char *&  s2,
char *&  s3,
char *&  s4,
char *&  s5 
)
static

Definition at line 109 of file soplexmain.cpp.

Referenced by runSoPlex().

◆ main()

int main ( int  argc,
char *  argv[] 
)

runs SoPlexBase command line

Definition at line 1449 of file soplexmain.cpp.

References printUsage(), and SPX_MSG_ERROR.

◆ printDualSolution()

static void printDualSolution ( SoPlexBase< R > &  soplex,
NameSet colnames,
NameSet rownames,
bool  real = true,
bool  rational = false 
)
static

Definition at line 626 of file soplexmain.cpp.

References SPX_MSG_INFO1.

Referenced by runSoPlex().

◆ printPrimalSolution()

static void printPrimalSolution ( SoPlexBase< R > &  soplex,
NameSet colnames,
NameSet rownames,
bool  real = true,
bool  rational = false 
)
static

Definition at line 524 of file soplexmain.cpp.

References SPX_MSG_INFO1.

Referenced by runSoPlex().

◆ printUsage()

static void printUsage ( const char *const  argv[],
int  idx 
)
static

Definition at line 47 of file soplexmain.cpp.

Referenced by main(), and runSoPlex().

◆ runSoPlex()

◆ writeDualSolution()

static void writeDualSolution ( SoPlexBase< R > &  soplex,
const char *  filename,
NameSet colnames,
NameSet rownames,
bool  real = true,
bool  rational = false,
bool  append = false 
)
static

Definition at line 387 of file soplexmain.cpp.

Referenced by runSoPlex().

◆ writePrimalSolution()

static void writePrimalSolution ( SoPlexBase< R > &  soplex,
const char *  filename,
NameSet colnames,
NameSet rownames,
bool  real = true,
bool  rational = false,
bool  append = false 
)
static

Definition at line 279 of file soplexmain.cpp.

Referenced by runSoPlex().