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

read variables from mps #648

Merged
merged 72 commits into from
Oct 9, 2023
Merged

Conversation

a-zakir
Copy link
Contributor

@a-zakir a-zakir commented Apr 4, 2023

add ability to read mps with named variables in Problem Generation

@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 4, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
13.0% 13.0% Duplication

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quality Gates: FAILED

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 0 findings(s) ✅
  • Affected Hotspots: 1 files(s) 🔥

Recommended Review Level: Detailed -- Inspect the code that degrades in code health.
View detailed results in CodeScene

🚩 Negative Code Health Impact (highest to lowest):

src/cpp/lpnamer/problem_modifier/LinkProblemsGenerator.cpp Outdated Show resolved Hide resolved
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quality Gates: FAILED

  • Declining Code Health: 2 findings(s) 🚩
  • Improving Code Health: 0 findings(s) ✅
  • Affected Hotspots: 1 files(s) 🔥

Recommended Review Level: Detailed -- Inspect the code that degrades in code health.
View detailed results in CodeScene

🚩 Negative Code Health Impact (highest to lowest):

src/cpp/lpnamer/main/RunProblemGeneration.cpp Outdated Show resolved Hide resolved
@a-zakir a-zakir marked this pull request as ready for review August 24, 2023 15:47
@@ -83,7 +83,7 @@ def launch_and_compare_lp_with_reference(install_dir, master_mode, test_dir):
study_dir = test_dir.resolve()
os.chdir(test_dir.parent)
launch_command = [str(lp_namer_exe), "-o", str(study_dir), "-a", str(zip_path),
"-e", "contraintes.txt", "-f", master_mode]
"-e", "contraintes.txt", "-f", master_mode, "--unnamed-problems"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand properly, "unnamed-problems" is "legacy" behaviour ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly, reference mps in theses tests are unnamed

self.zip_option]
cmd = [str(self.antares_exe_path), self.data_dir, self.ANTARES_N_CPU_OPTION, str(self.antares_n_cpu), self.zip_option]
if(version.parse(__antares_simulator_version__) >= version.parse(self.FIRST_VERSION_WITH_NAMED_PROBLEMS)):
cmd.append("--named-problems")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For legacy studies, keep behaviour as it is.
For newer studies, use named-problems.
Is that it ?

Do we always want named problems though? Or do we just want to support the feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, for simulator v8.7 and newer, we're forced to use named mps because variables.txt files are no longer produced.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 21 Code Smells

22.5% 22.5% Coverage
5.3% 5.3% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@JasonMarechal25 JasonMarechal25 merged commit c407a97 into develop Oct 9, 2023
@JasonMarechal25 JasonMarechal25 deleted the feature/read_variables_from_mps branch October 9, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants