Goto Chapter: Top 1 2 3 4 5 Bib Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

5 Appendix
 5.1 Gurobify Links
 5.2 GAP Links
 5.3 Gurobi Links
 5.4 Optimisation Status Codes
 5.5 Troubleshooting The Installation
 5.6 Example LP file

5 Appendix

5.1 Gurobify Links

5.2 GAP Links

5.3 Gurobi Links

For more information on Gurobi parameters, attributes, and status codes, see the following links:

5.4 Optimisation Status Codes

The information in this section on optimisation status codes is taken directly from the Gurobi website[gur16c].

5.5 Troubleshooting The Installation

5.5-1 Typical Sources Of Error During Installation

Common sources of error during installation include:

5.5-2 Specific Errors

This seems to be due to the way GAP stores integers, but it doesn't affect the function of the program. If no errors are given the installation is generally ok. Test the installation by loading Gurobify and running the test cases.

gap> LoadPackage("Gurobify");
#W dlopen() error: libgurobi70.so: cannot open shared\
object file: No such file or directory
Error, module '/home/linux/gap4r8/pkg/Gurobify/bin\
/x86_64-pc-linux-gnu-gcc-default64/Gurobify.so'

This is caused by GAP not being able to find the Gurobi binary. When installing Gurobify, you were required to enter the path to Gurobi in the configure stage. If this path is "gurobi_path", then navigate to "gurobi_path/lib" in the terminal. You should now be able to load Gurobify when running GAP from this location. It can be fixed by running the following:

LD_LIBRARY_PATH=gurobi_path/lib:$LD_LIBRARY_PATH

where "gurobi_path/lib" is as above. This will only be valid for the current session, to make this change permanent the line must be added to the .bash_profile file.

gap> LoadPackage("Gurobify");
dyld: lazy symbol binding failed: Symbol not found: _RegisterPackageTNUM
  Referenced from: /usr/local/lib/gap4r7/pkg/Gurobify-1.1.0/bin\
  /x86_64-apple-darwin14.3.0-gcc-default64/Gurobify.so
  Expected in: flat namespace

Gurobify requires GAP version 4.8 or higher.

src/Gurobify.c:12:10: fatal error: 'gurobi_c.h' file not found

Check that you have entered the correct path for Gurobi during installation.

gap> LoadPackage("Gurobify");
Error, Error: failed to create new environment. in
  if not LOAD_DYN( arg[1], false ) then
    Error( "no support for dynamic loading" );
fi; at /usr/local/lib/gap-4.10.0/lib/files.gd:583 called from 
<function "LoadDynamicModule">( <arguments> )
 called from read-eval loop at /usr/local/lib/gap-4.10.0/pkg/Gurobify/init.g:8
type 'quit;' to quit to outer loop

Check that Gurobi's licese is up-to-date.

5.6 Example LP file

Shown below is the LP file, "test.lp", written during the simple example in Section 1.

\ Model created with Gurobify - A GAP interface to Gurobi Optimizer.
\ LP format - for model browsing. Use MPS format to capture full model detail.
Minimize
  x + 2 y + z
Subject To
 UnNamedConstraint: 2 x + 2 y + 2 z <= 6
 UnNamedConstraint: x + 2 y + 3 z >= 5
 UnNamedConstraint: 2 x + 2 y + 2 z <= 6
 UnNamedConstraint: x + 2 y + 3 z >= 5
Bounds
Binaries
 x y z
End
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 5 Bib Ind

generated by GAPDoc2HTML