SCIP Doxygen Documentation
Loading...
Searching...
No Matches

Detailed Description

AMPL .nl file reader.

Author
Stefan Vigerske

For documentation on ampl::mp, see https://ampl.github.io and https://www.zverovich.net/2014/09/19/reading-nl-files.html. For documentation on .nl files, see https://ampl.com/REFS/hooking2.pdf.

Definition in file reader_nl.cpp.

#include <string>
#include <vector>
#include <map>
#include "scip/reader_nl.h"
#include "scip/cons_linear.h"
#include "scip/cons_nonlinear.h"
#include "scip/cons_sos1.h"
#include "scip/cons_sos2.h"
#include "scip/cons_and.h"
#include "scip/cons_or.h"
#include "scip/cons_xor.h"
#include "scip/expr_var.h"
#include "scip/expr_value.h"
#include "scip/expr_sum.h"
#include "scip/expr_product.h"
#include "scip/expr_pow.h"
#include "scip/expr_log.h"
#include "scip/expr_exp.h"
#include "scip/expr_trig.h"
#include "scip/expr_abs.h"
#include "mp/nl-reader.h"

Go to the source code of this file.

Data Structures

class  AMPLProblemHandler
 implementation of AMPL/MPs NLHandler that constructs a SCIP problem while a .nl file is read More...
class  AMPLProblemHandler::NumericArgHandler
class  AMPLProblemHandler::LinearExprHandler
class  AMPLProblemHandler::SuffixHandler< T >
class  AMPLProblemHandler::LinearPartHandler

Macros

#define READER_NAME   "nlreader"
#define READER_DESC   "AMPL .nl file reader"
#define READER_EXTENSION   "nl"
#define SCIP_CALL_THROW(x)

Functions

static SCIP_DECL_PROBDELORIG (probdataDelOrigNl)
static SCIP_DECL_READERCOPY (readerCopyNl)
static SCIP_DECL_READERREAD (readerReadNl)
SCIP_RETCODE SCIPincludeReaderNl (SCIP *scip)
SCIP_RETCODE SCIPwriteSolutionNl (SCIP *scip)

Macro Definition Documentation

◆ READER_NAME

#define READER_NAME   "nlreader"

Definition at line 69 of file reader_nl.cpp.

◆ READER_DESC

#define READER_DESC   "AMPL .nl file reader"

Definition at line 70 of file reader_nl.cpp.

◆ READER_EXTENSION

#define READER_EXTENSION   "nl"

Definition at line 71 of file reader_nl.cpp.

◆ SCIP_CALL_THROW

Function Documentation

◆ SCIP_DECL_PROBDELORIG()

SCIP_DECL_PROBDELORIG ( probdataDelOrigNl )
static

frees user data of original problem (called when the original problem is freed)

Definition at line 1711 of file reader_nl.cpp.

References assert(), i, NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemoryArrayNull, SCIPfreeMemory, SCIPreleaseCons(), and SCIPreleaseVar().

◆ SCIP_DECL_READERCOPY()

SCIP_DECL_READERCOPY ( readerCopyNl )
static

copy method for reader plugins (called when SCIP copies plugins)

Definition at line 1743 of file reader_nl.cpp.

References assert(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPincludeReaderNl().

◆ SCIP_DECL_READERREAD()

SCIP_DECL_READERREAD ( readerReadNl )
static

◆ SCIPincludeReaderNl()

SCIP_RETCODE SCIPincludeReaderNl ( SCIP * scip)

◆ SCIPwriteSolutionNl()