[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] help needed - executing glpsol from C function

From: Andrew Makhorin
Subject: Re: [Help-glpk] help needed - executing glpsol from C function
Date: Wed, 28 Jan 2009 16:47:01 +0300

> hello I am a beginner to GLPK and need to use GLPK for constraint
> optimization problem.
> I am also wanting to use the optimized values generated in .sol file into
> another .C file. So is there any way to perform this data passing?
> Is it possible to  use commands like  - system("/bin/-glpsol -m
> domainsizeabs -o domainsizeabs.sol"); to execute .mod file in linux
> platform ? Also kindly suggest me what considerations should I have in my
> C program to call.

You may use the printf statement in your mathprog model redirecting
its output to a file. This allows you writing the solution in the format
you need for further processing. For more details please see the mathprog

reply via email to

[Prev in Thread] Current Thread [Next in Thread]