Minotaur 0.4.1
Docs for developers
NlWriter.h
Go to the documentation of this file.
1//
2// Minotaur -- It's only 1/2 bull
3//
4// (C)opyright 2008 - 2025 The Minotaur Team.
5//
6
7
14#ifndef MINOTAURNLWRITER_H
15#define MINOTAURNLWRITER_H
16
17#include <ios>
18#include "Types.h"
19
20namespace Minotaur {
21
22class NonlinearFunction;
23class QuadraticFunction;
24typedef NonlinearFunction* NonlinearFunctionPtr;
25typedef QuadraticFunction* QuadraticFunctionPtr;
26
31class NlWriter {
32public:
34 NlWriter(EnvPtr env);
35
37 virtual ~NlWriter();
38
40 int write(ProblemPtr p, const std::string fname);
41
42private:
44 EnvPtr env_;
45
47 static const std::string me_;
48
49 int co_(ProblemPtr p, std::ofstream &of);
50 int exp_(std::ofstream &of, QuadraticFunctionPtr qf, NonlinearFunctionPtr nlf);
51 int header_(ProblemPtr p, std::ofstream &of);
52 int kjg_(ProblemPtr p, std::ofstream &of);
53 int rb_(ProblemPtr p, std::ofstream &of);
54};
55}
56#endif
57
Declare important 'types' used in Minotaur.
Definition: Environment.h:28
Writes a problem to a .nl file. The nonlinear functions must be stored in using native cgraphs for th...
Definition: NlWriter.h:31
virtual ~NlWriter()
Destroy.
Definition: NlWriter.cpp:46
int write(ProblemPtr p, const std::string fname)
write the nl file
Definition: NlWriter.cpp:51
NlWriter(EnvPtr env)
Default constructor.
Definition: NlWriter.cpp:40
Base class for nonlinear functions.
Definition: NonlinearFunction.h:31
Definition: Problem.h:74
Definition: QuadraticFunction.h:38
Definition: ActiveNodeStore.h:20

Minotaur source code documented by Doxygen 1.9.4 on Thu Apr 24 2025