btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / libs / linprog / LinearProgrammingTypes.h
blob8843e51ebc1bd69d7bd9f5b94f81ed1e678e77fd
1 /*
2 * Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
3 * Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
4 * Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
5 * Distributed under the terms of the MIT License.
6 */
8 #ifndef LINEAR_PROGRAMMING_TYPES_H
9 #define LINEAR_PROGRAMMING_TYPES_H
12 namespace LinearProgramming {
15 /**
16 * The possible results of a solving attempt.
18 enum ResultType {
19 kNoMemory = -2,
20 kError = -1,
21 kOptimal = 0,
22 kSuboptimal = 1,
23 kInfeasible = 2,
24 kUnbounded = 3,
25 kDegenerate = 4,
26 kNumFailure = 5
30 /**
31 * Possible operators for linear constraints.
33 enum OperatorType {
34 kEQ,
35 kLE,
36 kGE
41 /**
42 * The two possibilities for optimizing the objective function.
44 enum OptimizationType {
45 kMinimize,
46 kMaximize
49 } // namespace LinearProgramming
52 using LinearProgramming::ResultType;
53 using LinearProgramming::OperatorType;
54 using LinearProgramming::OptimizationType;
57 #endif // LINEAR_PROGRAMMING_TYPES_H