Hi,
This is the buid setting for cpp
[build_settings] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) compiler=g++ -Wall -c "%f" linker=g++ -Wall -o "%e" "%f" run_cmd="./%e"
How are I going to setup up GLPK various filetypes extension (e.g. mod, lp, mps, glp, fps)?
This what I have done in TextAdept. mod = '/usr/local/bin/glpsol --math %(filename)', mps = '/usr/local/bin/glpsol --mps %(filename)', fms = '/usr/local/bin/glpsol --freemps %(filename)', lp = '/usr/local/bin/glpsol --lp %(filename)', glp = '/usr/local/bin/glpsol --dlp %(filename)',
The above is working perfectly in TextAdept.
Now, how are I going to setup up GLPK various filetypes extension (e.g. mod, lp, mps, glp, fps) in Geany?
compiler=?????? run_cmd= ?????
For example (zum biespeil), if file extension is mod then glpsol --math + filename
compiler = glpsol ???????????
thanks in advance.
Noli
On 22 February 2010 22:46, Noli Sicad nsicad@gmail.com wrote:
Hi,
This is the buid setting for cpp
[build_settings] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) compiler=g++ -Wall -c "%f" linker=g++ -Wall -o "%e" "%f" run_cmd="./%e"
How are I going to setup up GLPK various filetypes extension (e.g. mod, lp, mps, glp, fps)?
This what I have done in TextAdept. mod = '/usr/local/bin/glpsol --math %(filename)', mps = '/usr/local/bin/glpsol --mps %(filename)', fms = '/usr/local/bin/glpsol --freemps %(filename)', lp = '/usr/local/bin/glpsol --lp %(filename)', glp = '/usr/local/bin/glpsol --dlp %(filename)',
The above is working perfectly in TextAdept.
Note: GLPK has not got any documentation online and I am not going to
install it just to read the manual, please encourage the project maintainers to put their documentation online (a standard request for all projects which do not put documentation online).
This means that I know nothing about GLPK and so will probably ask some silly questions.
Are you saying that there are different extensions, containing the same syntax? but each requires a different compile command? or are these a sequence of commands run one after the other to build an output?
I don't know anything about TextAdept but the Geany model of a "language" is:
1.a set of extensions defined for files containing the language
2. a syntax used for source highlighting and
3. a set of commands for those files
That means that there is only one command allowed for compile per language (and one for link and one for make ...)
I can see three options: (somebody else may be able to suggest others):
1. If GLPK acts as outlined above then I suggest that you use" make" as the compile command with a special makefile that chooses the correct command based on the extension.
2. Otherwise GLPK has to be considered several languages under the Geany model, each extension is its own language although they can share syntax highlihghting.
3. Otherwise using the development version you can extend the number of filetype commands and so define all your commands but you would have to choose the correst one to run :-(
Option 1 sounds the best based on what I can guess from your description and in the absence of any GLPK documentation.
Cheers Lex
Now, how are I going to setup up GLPK various filetypes extension (e.g. mod, lp, mps, glp, fps) in Geany?
compiler=?????? run_cmd= ?????
For example (zum biespeil), if file extension is mod then glpsol --math + filename
compiler = glpsol ???????????
thanks in advance.
Noli _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Note: GLPK has not got any documentation online and I am not going to
install it just to read the manual, please encourage the project maintainers to put their documentation online (a standard request for all projects which do not put documentation online).
Google: glpk http://www.google.com.au/#hl=en&source=hp&q=glpk&btnG=Google+Sea...
GLPK http://www.gnu.org/software/glpk/
GUSEK http://gusek.sourceforge.net/gusek.html
I don't know anything about TextAdept but the Geany model of a "language" is:
1.a set of extensions defined for files containing the language
a syntax used for source highlighting and
a set of commands for those files
All scintilla based editors can do the above. http://www.scintilla.org/ScintillaRelated.html
SciTE is the original editor and the rest emulate this functionability.
Advance ones are: Komodo Edit - Windows, Mac, Linux TetAdept - Windows, Mac, Linux and probably the easiest to configure for running languages, scripts and modellling language.
Try googling, komodo and TextAdept for more info.
I just use compile = as example because their is entries on this command. However, for modelling languages (glpk, r package, octave, etc) and scripts. It does really matter we use "compile" and "run" i.e. execute to run.
Thanks.
Noli
BTW, I think every linux distribution has glpk package.
Noli
On 2/23/10, Noli Sicad nsicad@gmail.com wrote:
Note: GLPK has not got any documentation online and I am not going to
install it just to read the manual, please encourage the project maintainers to put their documentation online (a standard request for all projects which do not put documentation online).
Google: glpk http://www.google.com.au/#hl=en&source=hp&q=glpk&btnG=Google+Sea...
GLPK http://www.gnu.org/software/glpk/
GUSEK http://gusek.sourceforge.net/gusek.html
I don't know anything about TextAdept but the Geany model of a "language" is:
1.a set of extensions defined for files containing the language
a syntax used for source highlighting and
a set of commands for those files
All scintilla based editors can do the above. http://www.scintilla.org/ScintillaRelated.html
SciTE is the original editor and the rest emulate this functionability.
Advance ones are: Komodo Edit - Windows, Mac, Linux TetAdept - Windows, Mac, Linux and probably the easiest to configure for running languages, scripts and modellling language.
Try googling, komodo and TextAdept for more info.
I just use compile = as example because their is entries on this command. However, for modelling languages (glpk, r package, octave, etc) and scripts. It does really matter we use "compile" and "run" i.e. execute to run.
Thanks.
Noli
I think geany "build settings" needs updating to acccommodate - 56 languages and scripts
Geany
[build_settings] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) compiler=g++ -Wall -c "%f" linker=g++ -Wall -o "%e" "%f" run_cmd="./%e"
This Scite and Gusek implementation to run the model
#To run model command.go.needs.subsystem.$(file.patterns.gmpl)=0 command.go.needs.$(file.patterns.gmpl)=$(SciteDefaultHome)\glpsol.exe $(1) -m "$(FileName).mod" $(doout) $(dobnd) $(2) $(3) command.go.subsystem.$(file.patterns.gmpl)=3 command.go.$(file.patterns.gmpl)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
command.go.needs.subsystem.$(file.patterns.gmps)=0 command.go.needs.$(file.patterns.gmps)=$(SciteDefaultHome)\glpsol.exe $(1) --$(mpstype) "$(FileNameExt)" $(doout) $(dobnd) command.go.subsystem.$(file.patterns.gmps)=3 command.go.$(file.patterns.gmps)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
command.go.needs.subsystem.$(file.patterns.gclp)=0 command.go.needs.$(file.patterns.gclp)=$(SciteDefaultHome)\glpsol.exe $(1) --lp "$(FileNameExt)" $(doout) $(dobnd) command.go.subsystem.$(file.patterns.gclp)=3 command.go.$(file.patterns.gclp)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
command.go.needs.subsystem.$(file.patterns.glp)=0 command.go.needs.$(file.patterns.glp)=$(SciteDefaultHome)\glpsol.exe $(1) --glp "$(FileNameExt)" $(doout) $(dobnd) command.go.subsystem.$(file.patterns.glp)=3 command.go.$(file.patterns.glp)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
Noli
On 2/23/10, Noli Sicad nsicad@gmail.com wrote:
BTW, I think every linux distribution has glpk package.
Noli
On 2/23/10, Noli Sicad nsicad@gmail.com wrote:
Note: GLPK has not got any documentation online and I am not going to
install it just to read the manual, please encourage the project maintainers to put their documentation online (a standard request for all projects which do not put documentation online).
Google: glpk http://www.google.com.au/#hl=en&source=hp&q=glpk&btnG=Google+Sea...
GLPK http://www.gnu.org/software/glpk/
GUSEK http://gusek.sourceforge.net/gusek.html
I don't know anything about TextAdept but the Geany model of a "language" is:
1.a set of extensions defined for files containing the language
a syntax used for source highlighting and
a set of commands for those files
All scintilla based editors can do the above. http://www.scintilla.org/ScintillaRelated.html
SciTE is the original editor and the rest emulate this functionability.
Advance ones are: Komodo Edit - Windows, Mac, Linux TetAdept - Windows, Mac, Linux and probably the easiest to configure for running languages, scripts and modellling language.
Try googling, komodo and TextAdept for more info.
I just use compile = as example because their is entries on this command. However, for modelling languages (glpk, r package, octave, etc) and scripts. It does really matter we use "compile" and "run" i.e. execute to run.
Thanks.
Noli
More info on GLPK http://www.maximalsoftware.com/solvers/glpk.html
GLPK and Editors including Geany http://www.mail-archive.com/help-glpk@gnu.org/
Noli
On 2/23/10, Noli Sicad nsicad@gmail.com wrote:
I think geany "build settings" needs updating to acccommodate - 56 languages and scripts
Geany
[build_settings] # %f will be replaced by the complete filename # %e will be replaced by the filename without extension # (use only one of it at one time) compiler=g++ -Wall -c "%f" linker=g++ -Wall -o "%e" "%f" run_cmd="./%e"
This Scite and Gusek implementation to run the model
#To run model command.go.needs.subsystem.$(file.patterns.gmpl)=0 command.go.needs.$(file.patterns.gmpl)=$(SciteDefaultHome)\glpsol.exe $(1) -m "$(FileName).mod" $(doout) $(dobnd) $(2) $(3) command.go.subsystem.$(file.patterns.gmpl)=3 command.go.$(file.patterns.gmpl)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
command.go.needs.subsystem.$(file.patterns.gmps)=0 command.go.needs.$(file.patterns.gmps)=$(SciteDefaultHome)\glpsol.exe $(1) --$(mpstype) "$(FileNameExt)" $(doout) $(dobnd) command.go.subsystem.$(file.patterns.gmps)=3 command.go.$(file.patterns.gmps)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
command.go.needs.subsystem.$(file.patterns.gclp)=0 command.go.needs.$(file.patterns.gclp)=$(SciteDefaultHome)\glpsol.exe $(1) --lp "$(FileNameExt)" $(doout) $(dobnd) command.go.subsystem.$(file.patterns.gclp)=3 command.go.$(file.patterns.gclp)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
command.go.needs.subsystem.$(file.patterns.glp)=0 command.go.needs.$(file.patterns.glp)=$(SciteDefaultHome)\glpsol.exe $(1) --glp "$(FileNameExt)" $(doout) $(dobnd) command.go.subsystem.$(file.patterns.glp)=3 command.go.$(file.patterns.glp)= dostring \ if ("$(opnout)"~="") then scite.Open("$(opnout)") end \ if ("$(opnbnd)"~="") then scite.Open("$(opnbnd)") end
Noli
On 2/23/10, Noli Sicad nsicad@gmail.com wrote:
BTW, I think every linux distribution has glpk package.
Noli
On 2/23/10, Noli Sicad nsicad@gmail.com wrote:
Note: GLPK has not got any documentation online and I am not going to
install it just to read the manual, please encourage the project maintainers to put their documentation online (a standard request for all projects which do not put documentation online).
Google: glpk http://www.google.com.au/#hl=en&source=hp&q=glpk&btnG=Google+Sea...
GLPK http://www.gnu.org/software/glpk/
GUSEK http://gusek.sourceforge.net/gusek.html
I don't know anything about TextAdept but the Geany model of a "language" is:
1.a set of extensions defined for files containing the language
a syntax used for source highlighting and
a set of commands for those files
All scintilla based editors can do the above. http://www.scintilla.org/ScintillaRelated.html
SciTE is the original editor and the rest emulate this functionability.
Advance ones are: Komodo Edit - Windows, Mac, Linux TetAdept - Windows, Mac, Linux and probably the easiest to configure for running languages, scripts and modellling language.
Try googling, komodo and TextAdept for more info.
I just use compile = as example because their is entries on this command. However, for modelling languages (glpk, r package, octave, etc) and scripts. It does really matter we use "compile" and "run" i.e. execute to run.
Thanks.
Noli