7 #ifndef __SENSAMPLTNLP_HPP__ 8 #define __SENSAMPLTNLP_HPP__ 53 bool allow_discrete =
false,
55 const char* ampl_option_string = NULL,
56 const char* ampl_invokation_string = NULL,
57 const char* ampl_banner_string = NULL,
58 std::string* nl_file_content = NULL
104 const char* suffix_name
108 const char* suffix_name
112 const char* suffix_name
116 const char* suffix_name
120 const char* suffix_name
124 const char* suffix_name
128 const char* suffix_name
std::map< std::string, std::vector< Number > > NumericMetaDataMapType
void set_sens_solution(Index idx, SmartPtr< IteratesVector > sens_sol)
Class for all IPOPT specific calculated quantities.
virtual bool get_var_con_metadata(Index n, StringMetaDataMapType &var_string_md, IntegerMetaDataMapType &var_integer_md, NumericMetaDataMapType &var_numeric_md, Index m, StringMetaDataMapType &con_string_md, IntegerMetaDataMapType &con_integer_md, NumericMetaDataMapType &con_numeric_md)
Method to request meta data for the variables and the constraints.
const int * get_index_suffix(const char *suffix_name)
bool compute_red_hessian_
Number * parameter_values_
This is the base class for all exceptions.
virtual void finalize_solution(SolverReturn status, Index n, const Number *x, const Number *z_L, const Number *z_U, Index m, const Number *g, const Number *lambda, Number obj_value, const IpoptData *ip_data, IpoptCalculatedQuantities *ip_cq)
This method is called when the algorithm has finished (successfully or not) so the TNLP can digest th...
ipindex Index
Type of all indices of vectors, matrices etc.
This file contains a base class for all exceptions and a set of macros to help with exceptions...
void operator=(const SUFFIX_EMPTY &)
Template class for Smart Pointers.
SolverReturn
enum for the return from the optimize algorithm
SmartPtr< const Journalist > jnlst_
local copy of current lower and upper bounds - needed for parameter change
const Number * get_number_suffix(const char *suffix_name)
std::vector< Number > get_number_suffix_vec(const char *suffix_name)
Class to organize all the data required by the algorithm.
ipnumber Number
Type of all numbers.
const Number * get_number_suffix_constr(const char *suffix_name)
std::map< std::string, std::vector< Index > > IntegerMetaDataMapType
Index n_sens_steps_
important Options
std::map< std::string, std::vector< std::string > > StringMetaDataMapType
Ampl Interface, implemented as a TNLP.
const int * get_index_suffix_constr(const char *suffix_name)
SensAmplTNLP(const SmartPtr< const Journalist > &jnlst, const SmartPtr< RegisteredOptions > regoptions, const SmartPtr< OptionsList > options, char **&argv, SmartPtr< AmplSuffixHandler > suffix_handler=NULL, bool allow_discrete=false, SmartPtr< AmplOptionsList > ampl_options_list=NULL, const char *ampl_option_string=NULL, const char *ampl_invokation_string=NULL, const char *ampl_banner_string=NULL, std::string *nl_file_content=NULL)
This class is the Sens-wrapper for the ampltnlp, adapts the get bounds function and some others to ou...
std::vector< int > get_index_suffix_constr_vec(const char *suffix_name)
SUFFIX_EMPTY(const SUFFIX_EMPTY ©)
virtual bool get_bounds_info(Index n, Number *x_l, Number *x_u, Index m, Number *g_l, Number *g_u)
returns bounds of the nlp.
std::vector< SmartPtr< IteratesVector > > sens_sol_
SUFFIX_EMPTY(std::string msg, std::string fname, Ipopt::Index line)
std::vector< int > get_index_suffix_vec(const char *suffix_name)
virtual void finalize_metadata(Index n, const StringMetaDataMapType &var_string_md, const IntegerMetaDataMapType &var_integer_md, const NumericMetaDataMapType &var_numeric_md, Index m, const StringMetaDataMapType &con_string_md, const IntegerMetaDataMapType &con_integer_md, const NumericMetaDataMapType &con_numeric_md)
This method returns any metadata collected during the run of the algorithm.
SmartPtr< OptionsList > options_