Coder Social home page Coder Social logo

Comments (2)

jmkerloch avatar jmkerloch commented on September 17, 2024

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.

flomnes avatar flomnes commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.