Minotaur 0.4.1
Docs for developers
AMPLJacobian.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
13#ifndef MINOTAURAMPLJACOBIAN_H
14#define MINOTAURAMPLJACOBIAN_H
15
16#include "asl.h"
17
18#include "Jacobian.h"
19
20namespace MINOTAUR_AMPL {
21
22class AMPLInterface;
23typedef AMPLInterface * AMPLInterfacePtr;
24
31public:
38
41
59
67
79 void fillColRowValues(const double *x,
80 double *values, int *error);
81
90 void fillRowColValues(const double *x, double *values, int *error);
91
94
95private:
97 ASL *myAsl_;
98
100 Minotaur::UInt nNz_;
101
103 double *tmp_;
104
106 Minotaur::UInt tmpSize_;
107};
109}
110
111#endif
112
113
Get information about Jacobian of a given Problem.
Interface to read ampl models using AMPL Solver Library. AMPLInterface class provides methods to read...
Definition: AMPLInterface.h:74
Jacobian class has methods to call Jacobian evaluation routines of AMPL. This class is not meant to c...
Definition: AMPLJacobian.h:30
~AMPLJacobian()
Destroy.
Definition: AMPLJacobian.cpp:32
AMPLJacobian(AMPLInterfacePtr iface)
Construct AMPLJacobian using an AMPL(ASL) interface.
Definition: AMPLJacobian.cpp:23
Minotaur::UInt getNumNz()
Return the number of non-zeros in the Jacobian.
Definition: AMPLJacobian.cpp:40
void fillRowColIndices(Minotaur::UInt *irow, Minotaur::UInt *jcol)
Fill the indices of non-zeros in Jacobian, row-wise (or constraint-wise).
Definition: AMPLJacobian.cpp:81
void fillColRowIndices(Minotaur::UInt *jcol, Minotaur::UInt *irow)
Fill in column and row indices of nonzeros in Jacobian.
Definition: AMPLJacobian.cpp:46
void fillColRowValues(const double *x, double *values, int *error)
Evaluate Jacobian at a given point x, column-wise. Fill the values of Jacobian at a given point x int...
Definition: AMPLJacobian.cpp:69
void fillRowColValues(const double *x, double *values, int *error)
Evaluate Jacobian at a given point x, row-wise.
Definition: AMPLJacobian.cpp:102
Definition: Jacobian.h:53
unsigned int UInt
Unsigned integer.
Definition: Types.h:30

Minotaur source code documented by Doxygen 1.9.4 on Fri Apr 25 2025