Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beginning to add support for an MPS reader
- Loading branch information
Showing
19 changed files
with
2,508 additions
and
1,500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
Copyright (c) 2009-2016, Jack Poulson | ||
All rights reserved. | ||
This file is part of Elemental and is under the BSD 2-Clause License, | ||
which can be found in the LICENSE file in the root directory, or at | ||
http://opensource.org/licenses/BSD-2-Clause | ||
*/ | ||
#include <El.hpp> | ||
using namespace El; | ||
|
||
int main( int argc, char* argv[] ) | ||
{ | ||
Environment env( argc, argv ); | ||
|
||
try | ||
{ | ||
const Int n = Input("--n","matrix width",100); | ||
const string filename = | ||
Input("--filename","MPS filename","adlittle.mps"); | ||
const bool compressed = Input("--compressed","compressed?",false); | ||
ProcessInput(); | ||
|
||
AffineLPProblem<Matrix<double>,Matrix<double>> problem; | ||
ReadMPS( problem, filename, compressed ); | ||
} | ||
catch( std::exception& e ) { ReportException(e); } | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.