Comments (2)
When using OR-Tools, MPS are written with OR-Tools object MPSolver::Write
method.
This method use SiriusInterface::Write
method :
void SiriusInterface::Write(const std::string& filename) {
if (sync_status_ == MUST_RELOAD) {
Reset();
}
ExtractModel();
VLOG(1) << "Writing Sirius MPS \"" << filename << "\".";
const int status = SRSwritempsprob(mLp->problem_mps, filename.c_str());
if (status) {
LOG(WARNING) << "Failed to write MPS.";
}
}
This should work but the method SRSwritempsprob
does nothing in sirius :
int SRSwritempsprob(PROBLEME_MPS * problem_mps, const char * fileName) {
PROBLEME_A_RESOUDRE problem_a_resoudre;
PROBLEME_PNE problem_pne;
PNE_copy_problem(problem_mps, &problem_a_resoudre, 0, 0.0);
//FIXME PNE_EcrireJeuDeDonneesMPS_avecNom(&problem_pne, &problem_a_resoudre, fileName);
return 0;
}
from antares_simulator.
This issue is still valid. Move the MPS writing function from Antares to Sirius Solver.
@klorel can we offer a fix for this in Sirius ?
from antares_simulator.
Related Issues (20)
- Remove doc related to the GUI
- Explicitly capture context in lambda functions
- Build warning in area.cpp HOT 1
- Constants in solver/variable
- Adequacy, adding available production twice HOT 2
- A few compilation warnings
- Optimization documentation missing short-term storage model
- MPS files are named regardless of option -s/--named-mps-problems HOT 2
- Remove manual dynamic allocations
- CI: deprecated node js 12 and 16 in SimTest repo HOT 1
- Assert always false in debug mode
- Number of cores in parallel
- Many .hxx files
- mingw compiler not supported (Windows)
- hydroLevelData : virtual function overriden but not marked override
- Missing files are not detected by run-test
- Antares Simulator : crash in debug on Windows
- Noises : updates and uses are messy
- Have sirius as optionnal for clients using Antares package HOT 1
- Can't build ortools locally HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antares_simulator.