Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
cp_solver_c.cc File Reference
#include "ortools/sat/c_api/cp_solver_c.h"
#include <string>
#include "absl/log/check.h"
#include "ortools/base/memutil.h"
#include "ortools/sat/cp_model.pb.h"
#include "ortools/sat/cp_model_solver.h"
#include "ortools/sat/model.h"
#include "ortools/sat/sat_parameters.pb.h"
#include "ortools/sat/util.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
namespace  operations_research::sat

Functions

void SolveCpModelWithParameters (const void *creq, int creq_len, const void *cparams, int cparams_len, void **cres, int *cres_len)
void * SolveCpNewEnv ()
void SolveCpDestroyEnv (void *const cenv)
void SolveCpStopSearch (void *cenv)
void SolveCpInterruptible (void *const cenv, const void *creq, int creq_len, const void *cparams, int cparams_len, void **cres, int *cres_len)

Function Documentation

◆ SolveCpDestroyEnv()

void SolveCpDestroyEnv ( void *const cenv)

Definition at line 52 of file cp_solver_c.cc.

◆ SolveCpInterruptible()

void SolveCpInterruptible ( void * cenv,
const void * creq,
int creq_len,
const void * cparams,
int cparams_len,
void ** cres,
int * cres_len )

Allows for interruptible solves. Solves can be interrupted by calling SolveCpStopSolve with the cenv argument.

Definition at line 60 of file cp_solver_c.cc.

◆ SolveCpModelWithParameters()

void SolveCpModelWithParameters ( const void * creq,
int creq_len,
const void * cparams,
int cparams_len,
void ** cres,
int * cres_len )

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition at line 42 of file cp_solver_c.cc.

◆ SolveCpNewEnv()

void * SolveCpNewEnv ( )

Definition at line 50 of file cp_solver_c.cc.

◆ SolveCpStopSearch()

void SolveCpStopSearch ( void * cenv)

Definition at line 56 of file cp_solver_c.cc.