Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
solver_port_c_test.c File Reference
#include <malloc.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "ortools/math_opt/core/c_api/solver.h"

Go to the source code of this file.

Functions

void TestSolveEmptyModel ()
 
void TestInterruptSolveEmptyModel ()
 
int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 71 of file solver_port_c_test.c.

◆ TestInterruptSolveEmptyModel()

void TestInterruptSolveEmptyModel ( )

Empty model

Solve with glop

If you handle the error instead of crashing, be sure to free status_msg.

Definition at line 44 of file solver_port_c_test.c.

◆ TestSolveEmptyModel()

void TestSolveEmptyModel ( )

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. A minimal use of MathOptSolve() from C to ensure the code compiles in C.

Note
this file is .c, not .cc, so the blaze will test this compiles as C.

Empty model

Solve with glop

If you handle the error instead of crashing, be sure to free status_msg.

Definition at line 24 of file solver_port_c_test.c.