Name

ampl_write_sol — write a .sol file which stores the solution of a given AMPL problem

Calling Sequence

ampl_write_sol(asl,message,x,v)

Parameters

asl

a structure which handles the pointer to the problem

message

a string descriptor which will be stored in the .sol file

x

the solution of the AMPL problem

v

the dual variables of the AMPL problem

Description

Write a .sol file which stores the solution of a given AMPL problem.

Examples

 
[asl, x0, bl, bu, v, cl, cu] = ampl_init('demos/data/ASL/ch03.nl');

ampl_write_sol(asl,'solution of the AMPL ch03 problem', x0, v);

ampl_free(asl); // free the memory
 

See Also

ampl_init, ampl_free, ampl_evalf, ampl_evalg, ampl_evalw, ampl_get_size

Authors

Yann COLLETTE