Skip to content

Instantly share code, notes, and snippets.

@vitaut
Created July 24, 2015 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitaut/b587e547196c37d51c64 to your computer and use it in GitHub Desktop.
Save vitaut/b587e547196c37d51c64 to your computer and use it in GitHub Desktop.
#include "asl.h"
int main() {
ASL *asl = ASL_alloc(ASL_read_fg);
FILE *f = jac0dim("test.nl", 0);
fg_read(f, 0);
fint ne = 0;
double x[] = { 0, 0 };
double objval = asl->p.Objval(asl, 0, x, &ne);
printf("%g %d\n", objval, ne);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment