ampl_get_type AMPL Toolbox ampl_write_sol

AMPL Toolbox >> AMPL Toolbox > ampl_init

ampl_init

read an AMPL .nl file and returns a problem structure plus boundaries of the problem

Calling Sequence

[asl,x,bl,bu,v,cl,cu] = ampl_init(filename)

Parameters

filename

the name of the .nl file to open

asl

a structure which handles the pointer to the problem

x

the starting point

bl

the lower boundaries

bu

the upper boundaries

v

the dual starting variables

cl

the lower boundaries of the constraintes

cu

the upper boundaries of the constraintes

Description

ampl_init reads a AMPL .nl file and initialize a structure which handles a pointer to the problem. It returns also some parameters related to the problem (like boundaries, etc.).

Examples

[asl, x0, bl, bu, v, cl, cu] = ampl_init('demos/data/ASL/ch03.nl');
// Do something
ampl_free(asl); // free the memory

See Also

Authors

ampl_get_type AMPL Toolbox ampl_write_sol