Model

Writing Model to File

write model to file

A model file will be written to file every time a Snack finds a solution and you can find it in the models directory


The Linear Program Model View

linear program model view

This is the linear program model view


LPSOLVE LP format example

An Example File

For example, user could use the following command to solve problem in linux

  • lp_solve -piv1 -s1 -S3 chicken_rice_and_veggies.lp

The Solution File

On windows, user can use lpsolve for windows

Solving Problem on a Different Solver

The chicken, rice and veggies mix problem on lpsolve for windows

Solving Problem on a Different Solver

The result of the chicken, rice and veggies mix problem using lpsolve for windows