Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
cp_solver_c.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Functions

void SolveCpModelWithParameters (const void *creq, int creq_len, const void *cparams, int cparams_len, void **cres, int *cres_len)
 
void * SolveCpNewAtomicBool ()
 
void SolveCpDestroyAtomicBool (void *atomic_bool)
 
void SolveCpStopSolve (void *atomic_bool)
 
void SolveCpInterruptible (void *limit_reached, const void *creq, int creq_len, const void *cparams, int cparams_len, void **cres, int *cres_len)
 

Function Documentation

◆ SolveCpDestroyAtomicBool()

void SolveCpDestroyAtomicBool ( void * atomic_bool)

◆ SolveCpInterruptible()

void SolveCpInterruptible ( void * limit_reached,
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 limit_reached atomic Boolean.

◆ 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.

◆ SolveCpNewAtomicBool()

void * SolveCpNewAtomicBool ( )

◆ SolveCpStopSolve()

void SolveCpStopSolve ( void * atomic_bool)