Hi Nilo, Andrew

------------------------------------------------------------
To:           Nilo Cesar Teixeira <[email protected]>
Subject:      Re: [Help-glpk] Includes
Message-ID:  <1321539577.2959.11.camel@corvax>
From:         Andrew Makhorin <[email protected]>
Date:         Thu, 17 Nov 2011 17:19:37 +0300
------------------------------------------------------------

>> Is it possible to "include" part of a model in a gmpl file ?
>>
>> I would like to keep the constraints in a different file.
>
> MathProg does not support file inclusions. However,
> you may use the C preprocessor 'gcc -E' or a similar
> text tool to do that.

First, it would help if you said what environment
you're on: Windows, Linux, or something else.

I have read that the C/C++ preprocessor should
only be used for its intended application.  One
alternative is GNU m4:

  http://en.wikipedia.org/wiki/GNU_m4

Or you could write some scripting, if the task is
simple, calling perhaps 'cat' and the 'bash'
redirection operator '>'.

HTH, Robbie
---
Robbie Morrison
PhD student -- policy-oriented energy system simulation
Technical University of Berlin (TU-Berlin), Germany
University email (redirected) : [email protected]
Webmail (preferred)           : [email protected]
[from Webmail client]



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to