Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactive Simplex Method - inital dictionary of dual problem not being created #38933

Open
2 tasks done
ComboProblem opened this issue Nov 6, 2024 · 1 comment
Open
2 tasks done
Labels

Comments

@ComboProblem
Copy link
Contributor

Steps To Reproduce

I have defined an InteractiveLPProblemStandardForm P, then created the dual problem by calling the dual method, Dual = P.dual(). After that I defined the dual problem as a standard form interactive LP problem via the standard form method Dual_stand = Dual.standard_form(). Dual_stand is an instance of InteractiveLPProblemStandardForm and I call Dual_stand.initial_dictionary() to create the initial dictionary.

See attached example (ignore my spelling mistake).

Screenshot from 2024-11-06 14-43-03

Expected Behavior

Dual_stand.initial_dictionary() becomes an instance of :class:LPDictionary and succeeds.

Actual Behavior

A ValueError is raised.

ValueError: variable name '-z' is not alphanumeric

Additional Information

No response

Environment

  • OS: Ubuntu 24.04.1 LTS
  • Sage Version: 10.5.beta6

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@DaveWitteMorris
Copy link
Member

Here is a typed copy of the example, for anyone who wants to try to reproduce it:

A = [[-1/5, 2/5], [2/5, -1/5], [1/5, 1/5]]
b = [2, 2, 4]
c = [2, 7]
P = InteractiveLPProblemStandardForm(A, b, c)
Dual = P.dual()
Dual_stand = Dual.standard_form()
Dual_stand.initial_dictionary()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants