Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
remote_http_solve.py File Reference

Go to the source code of this file.

Classes

class  ortools.math_opt.python.ipc.remote_http_solve.OptimizationServiceError
 

Namespaces

namespace  ortools
 
namespace  ortools.math_opt
 
namespace  ortools.math_opt.python
 
namespace  ortools.math_opt.python.ipc
 
namespace  ortools.math_opt.python.ipc.remote_http_solve
 

Functions

Tuple[mathopt.SolveResult, List[str]] ortools.math_opt.python.ipc.remote_http_solve.remote_http_solve (mathopt.Model model, mathopt.SolverType solver_type, Optional[mathopt.SolveParameters] params=None, Optional[mathopt.ModelSolveParameters] model_params=None, Optional[str] endpoint=_DEFAULT_ENDPOINT, Optional[str] api_key=None, Optional[float] deadline_sec=_DEFAULT_DEADLINE_SEC)
 
requests.Session ortools.math_opt.python.ipc.remote_http_solve.create_optimization_service_session (str api_key, float deadline_sec)
 
 ortools.math_opt.python.ipc.remote_http_solve._build_json_payload (mathopt.Model model, mathopt.SolverType solver_type, Optional[mathopt.SolveParameters] params, Optional[mathopt.ModelSolveParameters] model_params)
 
Tuple[mathopt.SolveResult, List[str]] ortools.math_opt.python.ipc.remote_http_solve._build_solve_result (bytes json_response, mathopt.Model model)
 

Variables

int ortools.math_opt.python.ipc.remote_http_solve._DEFAULT_DEADLINE_SEC = 10
 
str ortools.math_opt.python.ipc.remote_http_solve._DEFAULT_ENDPOINT = "https://optimization.googleapis.com/v1/mathopt:solveMathOptModel"
 
float ortools.math_opt.python.ipc.remote_http_solve._RELATIVE_TIME_BUFFER = 0.05