saveampl

saveampl exports a YALMIP model to an AMPL model.

Syntax

saveampl(F,h,filename)

Examples

The command enables conversion of (very) simple YALMIP models to AMPL models.

x = sdpvar(3,1);
A = randn(5,3);
b = randn(5,1);
c = randn(3,1);
F = [A*x <= b, integer(x(2:3))];
saveampl(F,c'*x,'myamplmodel.mod');

Comments

This function has not been tested to any extent and is probably severely limited.

Leave a Comment