/[ascend]/trunk/ascxx/testipopt.cpp
ViewVC logotype

Contents of /trunk/ascxx/testipopt.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2340 - (show annotations) (download) (as text)
Sun Dec 26 11:40:15 2010 UTC (9 years, 6 months ago) by jpye
File MIME type: text/x-c++src
File size: 467 byte(s)
Tracking down source of crash in IPOPT. Seems to be a problem with nnzJ being calculated inconsistently?
1 #include "library.h"
2 #include "simulation.h"
3 #include "solver.h"
4 #include "solverreporter.h"
5
6 #include <iostream>
7 using namespace std;
8
9 int main(void){
10
11 Library L;
12 L.load("test/ipopt/formula.a4c");
13 Type t = L.findType("formula");
14 Simulation S = t.getSimulation("S");
15 SolverReporter R;
16 try{
17 S.solve(Solver("IPOPT"),R);
18 }catch(runtime_error &e){
19 cerr << "ERROR in solving:" << e.what() << endl;
20 exit(1);
21 }
22 S.run(t.getMethod("self_test"));
23
24 L.clear();
25 }

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22