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 <solvers/test/linear_program_examples.h>

Inheritance diagram for LinearProgram0:
[legend]
Collaboration diagram for LinearProgram0:
[legend]

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.

Constructor & Destructor Documentation

LinearProgram0 ( const LinearProgram0 )
delete
LinearProgram0 ( LinearProgram0 &&  )
delete
LinearProgram0 ( CostForm  cost_form,
ConstraintForm  constraint_form 
)

Here is the call graph for this function:

~LinearProgram0 ( )
inlineoverride

Here is the call graph for this function:

Member Function Documentation

void CheckSolution ( SolverType  solver_type) const
overridevirtual

Implements OptimizationProgram.

Here is the call graph for this function:

LinearProgram0& operator= ( const LinearProgram0 )
delete
LinearProgram0& operator= ( LinearProgram0 &&  )
delete

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