Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbynum committed Jun 5, 2018
1 parent 439e611 commit a4b8016
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions doc/OnlineDocs/getting_started/scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@ causes the script to generate five more solutions:
.. literalinclude:: spyfiles/iterative1_Assign_integers.spy
:language: python

The next line associates the results obtained with the instance. This then enables
direct queries of solution values in subsequent lines using variable names contained in the instance:

.. literalinclude:: spyfiles/iterative1_Associate_results_with_instance.spy
:language: python

An expression is built up in the Python variable named ``expr``.
The Python variable ``j`` will be iteratively assigned all of the indexes of the variable ``x``. For each index,
the value of the variable (which was loaded by the ``load`` method just described) is tested to see if it is zero and
Expand Down
3 changes: 0 additions & 3 deletions doc/OnlineDocs/getting_started/spyfiles/iterative1.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ def o_rule(model):
# @Assign_integers
for i in range(5):
# @Assign_integers
# @Associate_results_with_instance
instance.solutions.load_from(results)
# @Associate_results_with_instance
# @Iteratively_assign_and_test
expr = 0
for j in instance.x:
Expand Down

This file was deleted.

0 comments on commit a4b8016

Please sign in to comment.