Miscellaneous
Eclipse with CPLEX
Technical
- Open project settings.
- In [C/C++ Build] + [Settings] + [Cross GCC/C++ Compiler] + [Includes],
- Add $CPLEX_HOME/include
.
- Add necessary source folders that contain header files.
- In [C/C++ Build] + [Settings] + [Cross C++ Linker] + [Libraries],
- Add in Library Search Path (-L) field $CPLEX_HOME/lib/x86-64_linux/static_pic/
- Add in Libraries (-l) field ilocplex
.
- In [C/C++ Build] + [Paths and Symbols] + [Source Location (tab)], link folders that contain source files.
-
(Optional) In [C/C++ Build] + [Settings] + [Cross GCC Compiler] + [Miscellaneous], append
-fPIC
-fexceptions -m64
.
Eclipse CDT with Gurobi
Technical
- Open project settings.
- In [C/C++ Build] + [Settings] + [Cross GCC/C++ Compiler] + [Includes]
- Add $GUROBI_HOME/include
.
- In [C/C++ Build] + [Settings] + [Cross C++ Linker] + [Libraries]
- Add in Library Search Path (-L) field $GUROBI_HOME/lib
- Add in Libraries (-l) field gurobi_c++
and gurobi(Version number)
.
(Example for Gurobu 10.02 the library name is gurobi100
).
-
If the environment variable
LD_LIBRARY_PATH
is not set, then set it $GUROBI_HOME/lib
.
- If there are "Undefined references" errors (usually encoutntered after a fresh Gurobi installation), then recompile the library using your compiler of choice. On Linux this can be done as such:
cd /opt/gurobi1002/linux64/src/build; make; cp libgurobi_c++.a ../../lib/
.
Git
Technical
There are many, and
this
is my current favorite.
Latex quick tips
Technical
- Some pro-tips from Prof. Cole Smith (Clemson) can be found here.
- How to change the default TEXMFHOME in Ubuntu?
- Create a file
changedtexmf.cnf
in /etc/texmf/texmf.d
and add the line TEXMFHOME = _path_to_new_texmfhome_
- Generate the new
texmf.cnf
file by invoking the command:
sudo update-texmf
.
- Chapter specific bibliographies using natbib and chapterbib:
- Include a
\bibliography{bib_fname}
in each chapter specific tex
file.
- Compile as (a) pdflatex on main tex file (b) bibtex Chapter.1..n (c) pdflatex on
main tex file (d) pdflatex on main tex file.