Minotaur 0.4.1
Docs for developers
AMPLHessian.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
14#ifndef MINOTAURAMPLHESSIAN_H
15#define MINOTAURAMPLHESSIAN_H
16
17#include "asl.h"
18
19#include "HessianOfLag.h"
20
21namespace MINOTAUR_AMPL {
22class AMPLInterface;
23typedef AMPLInterface * AMPLInterfacePtr;
24
31public:
38
41
44
56
67 void fillRowColValues(const double *x, double obj_mult, const double
68 *con_mult, double *values, int *error);
69
71 void negateObj();
72
73private:
75 ASL *myAsl_;
76
78 Minotaur::UInt nNz_;
79
81 bool negObj_;
82};
84}
85
86
87#endif
88
89
Declare class HessianOfLag to get information about hessian of Lagrangean of a Problem.
AMPLHessian class has methods to call Hessian of Lagrangian evaluation routines of AMPL....
Definition: AMPLHessian.h:30
void negateObj()
Ugly hack for maximization problems.
Definition: AMPLHessian.cpp:108
Minotaur::UInt getNumNz() const
Return the number of non-zeros in the Hessian of Lagrangian.
Definition: AMPLHessian.cpp:102
~AMPLHessian()
Destroy.
Definition: AMPLHessian.cpp:45
AMPLHessian(AMPLInterfacePtr iface)
Construct AMPLHessian using an AMPL(ASL) interface.
Definition: AMPLHessian.cpp:25
void fillRowColValues(const double *x, double obj_mult, const double *con_mult, double *values, int *error)
Evaluate Hessian of Lagrangian at a given point x, row-wise.
Definition: AMPLHessian.cpp:76
void fillRowColIndices(Minotaur::UInt *iRow, Minotaur::UInt *jCol)
Fill in row and column indices of nonzeros in Hessian of Lagrangian.
Definition: AMPLHessian.cpp:50
Interface to read ampl models using AMPL Solver Library. AMPLInterface class provides methods to read...
Definition: AMPLInterface.h:74
Definition: HessianOfLag.h:47
unsigned int UInt
Unsigned integer.
Definition: Types.h:30

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