Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#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) |
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 71 of file solver_port_c_test.c.
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.
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
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.
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.