Drake
LinearProgram0 Class Reference

Adapt from the linear programming example http://cvxopt.org/examples/tutorial/lp.html Solve the following linear program min 2x0 + x1 s.t -inf <= -x0 + x1 <= 1 2 <= x0 + x1 <=inf -inf <= x0 - 2x1 <= 4 x1 >= 2 x0 >= 0 The optimal solution is x0 = 1, x1 = 2. More...

#include <drake/solvers/test/linear_program_examples.h>

## Public Member Functions

LinearProgram0 (CostForm cost_form, ConstraintForm constraint_form)

~LinearProgram0 () override

void CheckSolution (SolverType solver_type) const override

Does not allow copy, move, or assignment
LinearProgram0 (const LinearProgram0 &)=delete

LinearProgram0operator= (const LinearProgram0 &)=delete

LinearProgram0 (LinearProgram0 &&)=delete

LinearProgram0operator= (LinearProgram0 &&)=delete

Public Member Functions inherited from OptimizationProgram
OptimizationProgram (CostForm cost_form, ConstraintForm constraint_form)

virtual ~OptimizationProgram ()

CostForm cost_form () const

ConstraintForm constraint_form () const

MathematicalProgramprog () const

double GetSolverSolutionDefaultCompareTolerance (SolverType solver_type) const

void RunProblem (MathematicalProgramSolverInterface *solver)

OptimizationProgram (const OptimizationProgram &)=delete

OptimizationProgramoperator= (const OptimizationProgram &)=delete

OptimizationProgram (OptimizationProgram &&)=delete

OptimizationProgramoperator= (OptimizationProgram &&)=delete

## Detailed Description

Adapt from the linear programming example http://cvxopt.org/examples/tutorial/lp.html Solve the following linear program min 2x0 + x1 s.t -inf <= -x0 + x1 <= 1 2 <= x0 + x1 <=inf -inf <= x0 - 2x1 <= 4 x1 >= 2 x0 >= 0 The optimal solution is x0 = 1, x1 = 2.

## ◆ LinearProgram0() [1/3]

 LinearProgram0 ( const LinearProgram0 & )
delete

## ◆ LinearProgram0() [2/3]

 LinearProgram0 ( LinearProgram0 && )
delete

## ◆ LinearProgram0() [3/3]

 LinearProgram0 ( CostForm cost_form, ConstraintForm constraint_form )

## ◆ ~LinearProgram0()

 ~LinearProgram0 ( )
inlineoverride

## ◆ CheckSolution()

 void CheckSolution ( SolverType solver_type ) const
overridevirtual

Implements OptimizationProgram.

## ◆ operator=() [1/2]

 LinearProgram0& operator= ( const LinearProgram0 & )
delete

## ◆ operator=() [2/2]

 LinearProgram0& operator= ( LinearProgram0 && )
delete

The documentation for this class was generated from the following files: