Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
solver.cc File Reference
#include "ortools/math_opt/core/c_api/solver.h"
#include <stddef.h>
#include <cstdlib>
#include <cstring>
#include <ios>
#include <limits>
#include <utility>
#include "absl/log/check.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "ortools/base/status_builder.h"
#include "ortools/base/status_macros.h"
#include "ortools/math_opt/core/solver.h"
#include "ortools/math_opt/model.pb.h"
#include "ortools/math_opt/parameters.pb.h"
#include "ortools/math_opt/result.pb.h"
#include "ortools/util/solve_interrupter.h"

Go to the source code of this file.

Classes

struct  MathOptInterrupter

Namespaces

namespace  operations_research
 OR-Tools root namespace.
namespace  operations_research::math_opt

Functions

MathOptInterrupterMathOptNewInterrupter ()
void MathOptFreeInterrupter (MathOptInterrupter *interrupter)
void MathOptInterrupt (MathOptInterrupter *interrupter)
int MathOptIsInterrupted (const MathOptInterrupter *interrupter)
int MathOptSolve (const void *model, const size_t model_size, const int solver_type, MathOptInterrupter *const interrupter, void **solve_result, size_t *solve_result_size, char **status_msg)
void MathOptFree (void *ptr)

Function Documentation

◆ MathOptFree()

void MathOptFree ( void * ptr)

Definition at line 147 of file solver.cc.

◆ MathOptFreeInterrupter()

void MathOptFreeInterrupter ( MathOptInterrupter * interrupter)

Definition at line 99 of file solver.cc.

◆ MathOptInterrupt()

void MathOptInterrupt ( MathOptInterrupter * interrupter)

Definition at line 103 of file solver.cc.

◆ MathOptIsInterrupted()

int MathOptIsInterrupted ( const MathOptInterrupter * interrupter)

Definition at line 107 of file solver.cc.

◆ MathOptNewInterrupter()

MathOptInterrupter * MathOptNewInterrupter ( )

Definition at line 97 of file solver.cc.

◆ MathOptSolve()

int MathOptSolve ( const void * model,
const size_t model_size,
const int solver_type,
MathOptInterrupter *const interrupter,
void ** solve_result,
size_t * solve_result_size,
char ** status_msg )

Definition at line 112 of file solver.cc.