src/HOL/Matrix/Cplex_tools.ML
changeset 43602 8c89a1fb30f2
parent 41491 a2ad5b824051
child 43850 7f2cbc713344
equal deleted inserted replaced
43601:fd650d659275 43602:8c89a1fb30f2
  1127     handle (Tokenize s) => raise (Load_cplexResult ("Tokenize: "^s))
  1127     handle (Tokenize s) => raise (Load_cplexResult ("Tokenize: "^s))
  1128      | Option => raise (Load_cplexResult "Option")
  1128      | Option => raise (Load_cplexResult "Option")
  1129 
  1129 
  1130 exception Execute of string;
  1130 exception Execute of string;
  1131 
  1131 
  1132 fun tmp_file s = Path.implode (Path.expand (File.tmp_path (Path.make [s])));
  1132 fun tmp_file s = Path.implode (Path.expand (File.tmp_path (Path.basic s)));
  1133 fun wrap s = "\""^s^"\"";
  1133 fun wrap s = "\""^s^"\"";
  1134 
  1134 
  1135 fun solve_glpk prog =
  1135 fun solve_glpk prog =
  1136     let
  1136     let
  1137     val name = string_of_int (Time.toMicroseconds (Time.now ()))
  1137     val name = string_of_int (Time.toMicroseconds (Time.now ()))