> Tutorials > Concert Technology Tutorial for .NET Users > Solve |
Solve |
INDEX
![]() |
After you have declared the decision variables and added the constraints and objective function to the model, your application is ready to search for a solution.
Step 9 - | Search for a solution |
Go to step 9 in the file, and add this line to make your application search for a solution.
if ( cplex.Solve() ) { |
Step 10 - | Display the solution |
Go to the comment step 10 in the file, and add these lines to enable your application to display any solution found in step 9.
Step 11 - | Save the model to a file |
If you want to save your model to a file in LP format, go to the comment step 11 in your application file, and add this line.
cplex.ExportModel("lpex1.lp"); |
If you have followed the steps in this tutorial interactively, you now have a complete application that you can compile and execute.
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |