Definition at line 58 of file lp_data.h.
|
| | LinearProgram () |
| | LinearProgram (const LinearProgram &)=delete |
| LinearProgram & | operator= (const LinearProgram &)=delete |
| void | Clear () |
| void | SetName (absl::string_view name) |
| const std::string & | name () const |
| ColIndex | CreateNewVariable () |
| ColIndex | CreateNewSlackVariable (bool is_integer_slack_variable, Fractional lower_bound, Fractional upper_bound, const std::string &name) |
| RowIndex | CreateNewConstraint () |
| ColIndex | FindOrCreateVariable (absl::string_view variable_id) |
| RowIndex | FindOrCreateConstraint (absl::string_view constraint_id) |
| void | SetVariableName (ColIndex col, absl::string_view name) |
| void | SetConstraintName (RowIndex row, absl::string_view name) |
| void | SetVariableType (ColIndex col, VariableType type) |
| bool | IsVariableInteger (ColIndex col) const |
| bool | IsVariableBinary (ColIndex col) const |
| void | SetVariableBounds (ColIndex col, Fractional lower_bound, Fractional upper_bound) |
| void | SetConstraintBounds (RowIndex row, Fractional lower_bound, Fractional upper_bound) |
| void | SetCoefficient (RowIndex row, ColIndex col, Fractional value) |
| void | SetObjectiveCoefficient (ColIndex col, Fractional value) |
| void | SetObjectiveOffset (Fractional objective_offset) |
| void | SetObjectiveScalingFactor (Fractional objective_scaling_factor) |
| void | SetMaximizationProblem (bool maximize) |
| void | CleanUp () |
| bool | IsCleanedUp () const |
| std::string | GetVariableName (ColIndex col) const |
| std::string | GetConstraintName (RowIndex row) const |
| VariableType | GetVariableType (ColIndex col) const |
| bool | IsMaximizationProblem () const |
| const SparseMatrix & | GetSparseMatrix () const |
| const SparseMatrix & | GetTransposeSparseMatrix () const |
| SparseMatrix * | GetMutableTransposeSparseMatrix () |
| void | UseTransposeMatrixAsReference () |
| void | ClearTransposeMatrix () |
| const SparseColumn & | GetSparseColumn (ColIndex col) const |
| SparseColumn * | GetMutableSparseColumn (ColIndex col) |
| ColIndex | num_variables () const |
| RowIndex | num_constraints () const |
| EntryIndex | num_entries () const |
| const DenseColumn & | constraint_lower_bounds () const |
| const DenseColumn & | constraint_upper_bounds () const |
| const DenseRow & | objective_coefficients () const |
| const DenseRow & | variable_lower_bounds () const |
| const DenseRow & | variable_upper_bounds () const |
| StrictITIVector< ColIndex, VariableType > | variable_types () const |
| const std::vector< ColIndex > & | IntegerVariablesList () const |
| const std::vector< ColIndex > & | BinaryVariablesList () const |
| const std::vector< ColIndex > & | NonBinaryVariablesList () const |
| Fractional | GetObjectiveCoefficientForMinimizationVersion (ColIndex col) const |
| Fractional | objective_offset () const |
| Fractional | objective_scaling_factor () const |
| bool | SolutionIsWithinVariableBounds (const DenseRow &solution, Fractional absolute_tolerance) const |
| bool | SolutionIsLPFeasible (const DenseRow &solution, Fractional absolute_tolerance) const |
| bool | SolutionIsInteger (const DenseRow &solution, Fractional absolute_tolerance) const |
| bool | SolutionIsMIPFeasible (const DenseRow &solution, Fractional absolute_tolerance) const |
| void | ComputeSlackVariableValues (DenseRow *solution) const |
| Fractional | ApplyObjectiveScalingAndOffset (Fractional value) const |
| Fractional | RemoveObjectiveScalingAndOffset (Fractional value) const |
| std::string | GetDimensionString () const |
| std::string | GetObjectiveStatsString () const |
| std::string | GetBoundsStatsString () const |
| std::string | Dump () const |
| std::string | DumpSolution (const DenseRow &variable_values) const |
| std::string | GetProblemStats () const |
| std::string | GetPrettyProblemStats () const |
| std::string | GetNonZeroStats () const |
| std::string | GetPrettyNonZeroStats () const |
| void | AddSlackVariablesWhereNecessary (bool detect_integer_constraints) |
| ColIndex | GetFirstSlackVariable () const |
| ColIndex | GetSlackVariable (RowIndex row) const |
| void | PopulateFromDual (const LinearProgram &dual, RowToColMapping *duplicated_rows) |
| void | PopulateFromLinearProgram (const LinearProgram &linear_program) |
| void | PopulateFromPermutedLinearProgram (const LinearProgram &lp, const RowPermutation &row_permutation, const ColumnPermutation &col_permutation) |
| void | PopulateFromLinearProgramVariables (const LinearProgram &linear_program) |
| void | AddConstraints (const SparseMatrix &coefficients, const DenseColumn &left_hand_sides, const DenseColumn &right_hand_sides, const StrictITIVector< RowIndex, std::string > &names) |
| void | AddConstraintsWithSlackVariables (const SparseMatrix &coefficients, const DenseColumn &left_hand_sides, const DenseColumn &right_hand_sides, const StrictITIVector< RowIndex, std::string > &names, bool detect_integer_constraints_for_slack) |
| void | Swap (LinearProgram *linear_program) |
| void | DeleteColumns (const DenseBooleanRow &columns_to_delete) |
| void | DeleteSlackVariables () |
| void | Scale (SparseMatrixScaler *scaler) |
| Fractional | ScaleObjective (GlopParameters::CostScalingAlgorithm method) |
| Fractional | ScaleBounds () |
| void | DeleteRows (const DenseBooleanColumn &rows_to_delete) |
| bool | IsValid (Fractional max_valid_magnitude=kInfinity) const |
| bool | UpdateVariableBoundsToIntersection (const DenseRow &variable_lower_bounds, const DenseRow &variable_upper_bounds) |
| bool | IsInEquationForm () const |
| bool | BoundsOfIntegerVariablesAreInteger (Fractional tolerance) const |
| bool | BoundsOfIntegerConstraintsAreInteger (Fractional tolerance) const |
| void | NotifyThatColumnsAreClean () |
| void | SetDcheckBounds (bool dcheck_bounds) |
| DenseColumn * | mutable_constraint_lower_bounds () |
| DenseColumn * | mutable_constraint_upper_bounds () |
| void | RemoveNearZeroEntries (Fractional threshold) |