src/HOL/Matrix_LP/Cplex_tools.ML
changeset 76882 d9913b41a7bc
parent 67405 e9ab4ad7bd15
child 78710 27b2368ca69d
equal deleted inserted replaced
76881:b59118d11a46 76882:d9913b41a7bc
  1134     handle (Tokenize s) => raise (Load_cplexResult ("Tokenize: "^s))
  1134     handle (Tokenize s) => raise (Load_cplexResult ("Tokenize: "^s))
  1135      | Option.Option => raise (Load_cplexResult "Option")
  1135      | Option.Option => raise (Load_cplexResult "Option")
  1136 
  1136 
  1137 exception Execute of string;
  1137 exception Execute of string;
  1138 
  1138 
  1139 fun tmp_file s = Path.implode (Path.expand (File.tmp_path (Path.basic s)));
  1139 fun tmp_file s = File.standard_path (File.tmp_path (Path.basic s));
  1140 fun wrap s = "\""^s^"\"";
  1140 fun wrap s = "\""^s^"\"";
  1141 
  1141 
  1142 fun solve_glpk prog =
  1142 fun solve_glpk prog =
  1143     let
  1143     let
  1144     val name = string_of_int (Time.toMicroseconds (Time.now ()))
  1144     val name = string_of_int (Time.toMicroseconds (Time.now ()))